Skip to main content
Question

How to implement drag and drop in Automation Anywhere?

  • April 28, 2026
  • 3 replies
  • 60 views

I am trying to automate a scenario where I need to perform a drag-and-drop action (for example, dragging an appointment to the service calendar).

However, I could not find any direct drag-and-drop command in Automation Anywhere.

Could anyone please guide me on:

Is there any built-in command available for drag-and-drop?

If not, what is the recommended approach to achieve this?

Are there any best practices to make it more reliable (avoiding coordinate-based failures)?

Any examples or suggestions would be really helpful.

3 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • April 28, 2026

@jerinjoy Drag and drop is accomplished using the Mouse package.

There are actions for Move, Click, and Scroll. Look at the Click. There is “button down” and “button up”. Essentially, you can use a Click with button down at the first coordinates, then another Click with button up at the second coordinates.

 


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • April 28, 2026

@jerinjoy You can capture coordinates from objects by using a Recorder: Capture → Get Property → and getting the X and Y coordinates from there. Some adjustments to the coordinates may be necessary going from HTML coordinates to Mouse package coordinates.

You may wish to find a better way than using the UI for this drag-and-drop option. Is there an API available for this application?


  • Cadet | Tier 2
  • May 18, 2026

I am trying to automate a scenario where I need to perform a drag-and-drop action (for example, dragging an appointment to the service calendar) and just like Semakan Kenderaan Mudah makes vehicle checks simple, finding the right automation approach here requires knowing your options.

However, I could not find any direct drag-and-drop command in Automation Anywhere.

Could anyone please guide me on:

Is there any built-in command available for drag-and-drop?

If not, what is the recommended approach to achieve this?

Are there any best practices to make it more reliable (avoiding coordinate-based failures)?

Any examples or suggestions would be really helpful.

No built-in drag-and-drop command exists in Automation Anywhere.No built-in drag-and-drop command exists in Automation Anywhere. For web apps, use Execute JavaScript to dispatch dragstart, dragover, and drop events directly on the elements rather than simulating mouse movement. For desktop apps, chain Mouse Down, Mouse Move, and Mouse Up commands but anchor to a UI element rather than hardcoded coordinates. Keep resolution and zoom consistent, add wait conditions around the action, and build in retry logic in case the drop doesn't register. If the calendar supports keyboard shortcuts as an alternative, that's always the most reliable path.