web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to Call Action from Console App

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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);

  • Community Member Profile Picture
    on at

    For more Information use this link

    deepakexploring.wordpress.com/.../calling-actions-from-plugin-in-crm-2013

  • awalters Profile Picture
    3,079 on at

    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.

  • awalters Profile Picture
    3,079 on at

    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.

  • Community Member Profile Picture
    on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans