Hi,
I created a script agent, a step and a macro in Customer Service Workspace to convert an email in a case.
I start with an email session and it will be my anchor tab.
I use a new form to fill fields and then save it. I create the case and I use three fields of data to create a lookup, for example:
In a second step I would like to update the regardingobjectid field of the email in the same way, but it fails.
It fails and I don't know why. I see the execution history of the macro and it says that the problem is the update register box, but it just shows data of fileds (GUIDs are correct), no explanation about the problem.
I changed dynamic value for odata slug, avoid to use customeridname, odata.bin format and I write data directly and the result is fail.
How can I update the regardingobjectid field in an email from a macro?
Thanks.
Hi, I'm very happy to have found a solution!
Testing and testing and more testing, and finally I have found a solution and it works.
I modified the email regarding lookup data:
regardingobjectid_incident@odata.bind
/incidents({$odata.incident.incidentid.?$filter=_customerid_value eq '${accountid}'&$orderby=createdon desc&$top=1})
If you know a better solution (easier and trusted) to find the incidentid, please, tell me.
And ... surprise! it works, it found the incidentid and stored the regarding lookup with the incident.
A lot of thanks to regex91 , because I read his/her post and with its solution of a Former Member I found the solution.
Hi,
First I create a new register, an incident (${accountid} is a custom slug with the account GUID).
I save the incident and it works fine and the incident is created.
And the problem is when I try to fill the regarding lookup in the email (I opened the email as an email session, then it is the ${anchor} register and I also changed the regardingobjectidtype by incident directly).
The result is:
To check the data I attach the save data of the execution.
Thanks for your help.
Hi Carlos,
Could you share screenshots about the macro steps and execution history?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156