I tried using this connector just to do a simple query and I keep getting an Index was out of range error. All I am doing is requesting to get the AccountID of a case number. The query is as follows:
SELECT AccountId FROM Case WHERE CaseNumber = â13305572â
Iâm not quite sure what the problem would be. I have created a datatable called tblSaleforce. I created the table directly from the OutputDataTable variable creator from within the activity.
@ovi@badita I am not finding a way to update the package in UiPath Gallery. Do i have to delete the existing package and upload the latest one again? Canât i just update the latest version of the package.
Do the copy paste the old directory (which you keep the nuget package and dlls) and rename with the new version number .
Open the ânupkgâ file with NuGet Package Explorer from the new directory.
In the Package meta data - > Except the id you can change all the things.
you can change the version number 1.0.3 . Click the green tick in the top.
5.if you have changes in the package content. you can do.
6.Finally do the **Save As **. and upload into the https://gallery.uipath.com
I already have 1.0.2 uploaded into gallery.uipath.com, do you mean that uploading again with 1.0.3 will overwrite the existing package there with the latest one.
@Rammohan91 Thank you!! Thank you!! You donât know how much this activity was needed. You wouldnât by chance be working on an activity that could mimic the Salesforce workbench activities like Update, Insert, etc. by using a file?
@rodwaymore You may want to have a look at the activities i just added to this custom activity.
2 more custom activities are now available âInsert Record PRODâ & âInsert Record SANDBOXâ for the package. I just tested it and the insertion of the record works perfectly for me. I would be happy if you can test it on your end since you requested it first I will try to create one soon for update as well.
Note:
Field Names, Field Values are string arrays and Object Name is String. Follow as below:
Wow!!! I really didnât expect such a fast turnaround on this. Iâll check it out right now and get right back you! You REALLY donât know how helpful this will be for the Salesforce project we are working on.
I tried Inserting a case but I get an âIndex was out of rangeâ error.
The Salesforce FieldNames names are
{âAccountIDâ,âContactIDâ,âTypeâ,âCenter_of_Excellence__câ,âOriginâ,âSubjectâ,âDescriptionâ,âRecordTypeIDâ,âIsVisibleInSelfServiceâ,âStatusâ,âOwnerIDâ}
The FieldValues that I am using are:
{âxxxxxxxxxxâ,âxxxxxxxxâ,âOrdersâ,âPartner Services & Operationsâ,âEDU ARC Automationâ,â**This is a test EDU ARC Order. It will be deleted by RPA Team. DISREGARDâ,âThis is a test descriptionâ,âOrder Supportâ,âFALSEâ,âOpen - Unassignedâ,âPartner Services & Operationsâ}
I removed the actual AccountID number and ContactID numbers and replaced with âxâ in this communication so those values are actually numbers.
Hey @rodwaymore, Thank you so much for testing that. I was hard coding the array size of FieldNames. Its now dynamic and takes the length from the FieldNames property. It should work now. Fix 1.0.6 updated on the gallery now.
Added 2 more activities to the package - âUpdate Record PRODâ & âUpdate Record SANDBOXâ.
Latest Version 1.0.7 has been uploaded to UiPath Gallery.
Properties:
ID - Id of the salesforce record that needs to be updated. VariableType is String.
FieldNames - String Array of Field Names that needs to be updated.
FieldValues - String Array of Field Values that needs to be updated in sync with the FieldNames array.
ObjectName - Object of the Salesforce that would be updated. VariableType is String.
Let me know in case anyone see any issues with these activities.
Would be happy to receive more suggestions for building custom activities that may be needed related to salesforce.