Notifications
Announcements
No record found.
Hi everyone ,
While i was going through Actions in Microsoft CRM , i was having trouble in calling it through Console app.
I would like to share the answer with everyone.
*This post is locked for comments
solution of the problem would be
// Calling the Action - new_callMessage
OrganizationRequest req = new OrganizationRequest("new_callMessage");
req["ActionCall"] = "This is a test operation for using Actions in CRM 2016 "; //action name
req["Target"] = new EntityReference("opportunity", opportunity.Id); //entity name and entity Guid
//execute the request
OrganizationResponse response = service.Execute(req);
For more Information use this link
deepakexploring.wordpress.com/.../calling-actions-from-plugin-in-crm-2013
What version of CRM are you running? We're running 8.2, and I'm getting the error "Unrecognized request parameter: Target" when I try this.
Never mind - I actually had to manually add Target as an input parameter on the action. I'd gotten the impression elsewhere that that was there by default...
ETA: Poking further, I think that the issue was that the action I was testing on was set to be global (i.e. not for a specific entity). In that case, it let me add a Target parameter, and activate and run the action. However, as soon as I went to add steps to it, every possible thing I did was giving me a super non-descriptive error, so something's weird there.
However, I was able to create a new test action for a specific entity, and now it appears that Target is there without me having to add it, as I thought originally.
sorry i saw your post late.. Great it has worked for you.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2