Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

Macro error trying to set regardingobjectid via action "update existing record"

(1) ShareShare
ReportReport
Posted on by 10
Hi Community
 
I'm currently implementing an agent script + macros for the scenario "anchor = account, create phonecall, create case, link phonecall to case".
 
Everything is fine but linking the phonecall to the newly created case.
 
I'm using the action "update existing record" for updating the case.
Updating the case description without the regardingobject is fine and works.
Only updating the regardingobject still produces an error.
 
The screenshot shows the way I try to set the regardingobject field. In this case a changed it to account which is my "anchor". However, neither account nor incident works.
 
I also tried this approach: 
 
Didn't work either.
 
Do you have an idea?
 
Thx in advance
Steffen
  • Verified answer
    Cui Hao Profile Picture
    Cui Hao on at
    Macro error trying to set regardingobjectid via action "update existing record"
    Hi,
     
    The reason it doesn't work with hardcoding is probably due to the specificity of this /regardingobjectid/ field.
    I found a related post, which cmoreno8 talks about how to find /incidentid/.
    You can make a reference to it, I see that the problem seems to have been solved in this link, I hope that helps.
     
    Best regards,
    Cui Hao
     
  • JW-16061330-0 Profile Picture
    JW-16061330-0 10 on at
    Macro error trying to set regardingobjectid via action "update existing record"
    Hi Cui Hao
     
    Id did some more tests with hardcoded IDs so incidentid resp. phonecallid do not play a role. But I still get an error.
    Somehow it seems there is an issue updating the regarding field in the phonecall via the "update existing record" action...
    As you can see I already use the regardingobjectidtype to specifiy the entitytype "incident".
     
     
    Additonally: just updating the phonecall description field works. Same hardcoded phonecall ID.
     
    BR
    Steffen
  • Cui Hao Profile Picture
    Cui Hao on at
    Macro error trying to set regardingobjectid via action "update existing record"
    Hi,
     
    My guess is that maybe it's because of your /regardingobjectid/ field, which is a lookup field that corresponds to more than one entity, and you need to point it to some entity.
     
    If it's convenient, could you please tell me a few questions?
    1./Set session context: incidentid/  What are the details of this process and can you provide a screenshot?
    2.Could you please tell me a little bit about your /phonecallid/ is it in the first macro and then passed through what method, could you elaborate?
    You can answer my question in more detail and I'll run a test to see if my guess is correct.
     
    Best regards,
    Cui Hao
  • JW-16061330-0 Profile Picture
    JW-16061330-0 10 on at
    Macro error trying to set regardingobjectid via action "update existing record"
    Hi Cui Hao
     
    In the agent script I have different steps/ macros.
     
    These are the steps of the second macro.
    Trying to update the phonecall description works. So the phonecall GUID is ok. It only fails when updating the regarding field...
     
    BR
    Steffen
  • Cui Hao Profile Picture
    Cui Hao on at
    Macro error trying to set regardingobjectid via action "update existing record"
    Hi,

    Could you please provide a screenshot of the complete steps?
    Could I ask if you created a separate macro for all the steps, or did you put all the steps in a macro?
    I tried some operations, but did not get this /PhonecallId/, may I ask how you get this /PhonecallId/?


    Best regards,
    Cui Hao

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans