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)

assembly call from real time workflow

(0) ShareShare
ReportReport
Posted on by 76

Hello,

I have assembly, that update an attribute of Entity.
fragment of code
var entity = new Entity("name", entityId);
entity ["attrName"] = newValue
_service.Update(entity);

And I call this assembly in realtime workflow(not background)
But when I call workflow, I don't see any result, only after Refresh page.
Why ?

Thanks.

*This post is locked for comments

I have the same question (0)
  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    Since you set the workflow as realtime workflow, what's the tirgger condition did you set?

    For example I created a new realtime workflow and I want to trigger it when I changed the user name in Account entity.

    1. I set the conditon to "After".

    pastedimage1569836091242v1.png

    And when I updated the user name and saved the form, the workflow ran automatically.

    pastedimage1569836137144v2.png

    In general, realtime workflow should run immediately after the conditon has been triggered.

    Could you kindly share your condition to us so that we could help you better?

    Hope it helps.

    Best Regards,

    Leo

  • Marina Karapetyan Profile Picture
    76 on at

    Hi Leo,

    Here is my workflow. It is called as child process from another workflow(again real time).

    I see the result of my aseembly, but only after refresh.

    4857.workflow.PNG

  • sardar ahmed Profile Picture
    520 on at

    Hi Marina,

    This seems to be a known issue with MS CRM, it works some times and it doesn't other times.

  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi Marina,

    I set my process as child process and remove all the tirgger conditions as yours, and I added a parent real time workflow to trigger it, then when the parent workflow ran, the child process also ran automatically and the result showed in the form without refresh the form.

    pastedimage1570506023092v1.png

    pastedimage1570506041449v2.png

    It's a very strange situation. Could you share what's the parent process trigger condition? Does the process need to be triggered by refresh the form?

    In my case, I set the parent process trigger condition when creating the account records.

    Hope it helps.

    Best Regards,

    Leo

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    I gues this behaviour happens on new unified interface (sometimes)

  • Kokulan Profile Picture
    18,054 on at

    Is this workflow runs on main entity or related entity? Could you share screenshot of the main workflow triggers

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