Jump to content

Scripting for SalesForce via browser


Recommended Posts

Hi there,

I have been manually uploading files to "WorkSpaces" in SalesForce manually which requires many steps. I am looking for ways whether we can use AutoIt to script these activity so that, the script can pickup files from the local or network folder and post them to the "Work Space" in SalesForce.

Is this possible?

Thanks in advance.

Thanks & Regards

Link to post
Share on other sites
  • Moderators

Sure it's possible if you can do it manually.

Sounds like you're in for learning the IE.au3 functions (_IE* functions in help file).

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to post
Share on other sites

Hi,

Thanks for your reply.

I am reviewing the IE.au3 functions. Is there any example to start with so that, I can develop it further?

Unfortuantely, the buttons or controls in SalesForce page is not visible to the Au2Info and hence unable to send any mouse clicks.

Any example would be highly appreciated.

Thanks & Regards

Link to post
Share on other sites
  • Moderators

The IE.au3 doesn't use "standardized" automation for buttons and such.

It utilizes the COM objects from within the browser (BOM/DOM).

I'm fairly sure there are several examples already in the help file that are going to assist you.  I don't use salesforce, but I've automated uploads for years with it on other sites.

It's going to be a task for you if you're not familiar with the object models, the learning curve so to speak.  Best to work with the examples provided, and get an understanding rather than me code anything specifically for that site for you.

You may want to utilize debugbar when you're ready to help get the id/class/name of the objects you want to interact with.

Start coding, make an honest effort, when you fail, post your failing code and specific questions and you'll be helped along.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Langmeister
      Hi, I need help performing actions in Salesforce using IE. I used to complete tasks via MouseMove/MouseClick etc. on the Chrome application of SF, but unfortunately this only works for me and not my colleagues due to different positions of things etc. Being unable to get Webdriver UDF or Chromedriver running to interact with the code directly, I chose to look into the IE UDF. ATM I'm trying to tick a specific checkbox in SF which simply allows me to "select all checkboxes" at the same time. Applying the following code on a random website with checkboxes works just fine for me: (in this case selecting cheese checkbox)
      #include <IE.au3> Local $oIE = _IECreate("http://www.echoecho.com/htmlforms09.htm") Local $oSubmit = _IEGetObjByName($oIE, "option3") _IEAction($oSubmit, "click") _IELoadWait($oIE) But applying it to the Salesforce website it does exactly nothing and responds with these warnings/errors:
      The script is exactly the same, except for website and the input name tag of the desired checkbox being different.
      #include <IE.au3> Local $oIE = _IECreate("Corporate Salesforce URL") Local $oSubmit = _IEGetObjByName($oIE, "myPage:myForm:oliListBlock:oliListTable:j_id36") _IEAction($oSubmit, "click") _IELoadWait($oIE) As its working with random websites my guess is that there has to be something done to get it work with SF.
      Hope the more experienced SF+AutoIt pros can help me out here. Thanks in advance!
×
×
  • Create New...