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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Can state be set automatically after changing status reason from web portal?

(0) ShareShare
ReportReport
Posted on by 37

Now I have a new question. Web portal is able the send request to Dynamics CRM via call CRM API. One application has two state:active and inactive. and within"active" we have :approved, on hold, exception, within"inactive": cancelled, archived,expired.  When web portal need to change the status reason from approved to cancelled, how to make state to be set as inactive automatically? If not, do they need to send status reason with state code? Thanks!

*This post is locked for comments

I have the same question (0)
  • Gopalan Bhuvanesh Profile Picture
    11,401 on at
    RE: Can state be set automatically after changing status reason from web portal?

    --

  • Charlie Chen179 Profile Picture
    37 on at
    RE: Can state be set automatically after changing status reason from web portal?

    It's a request from web portal call WEB API. Only status reason will be sent. Thanks.

  • Suggested answer
    Colin V Profile Picture
    on at
    RE: Can state be set automatically after changing status reason from web portal?

    If your planning on using the CRM Web API, you can't securely call the CRM Web API from the portal.  Your functionality will need to be implemented with the native portal components (entity form or web form) and a combination of plugins and workflows if necessary.  Entity forms have a feature called action configuration which you can use to execute workflows where you can make your state modifications.

  • Charlie Chen179 Profile Picture
    37 on at
    RE: Can state be set automatically after changing status reason from web portal?

    It sounds a little difficult for me. Do you have any sample for this? Could you provide more detail?

    If a request sent from web portal via WEB API, how can the plugin or workflow be fired? Thanks.

  • ntn32 Profile Picture
    401 on at
    RE: Can state be set automatically after changing status reason from web portal?

    You can have a field (i.e a optionset field with all the status reasons) in CRM and update that field value from portal. Now create a system workflow in CRM which triggers on change of this field(optionset field). That's it, based on the optionset value using workflow step, update the status with status reason of record.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans