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)

execute multiple request

(0) ShareShare
ReportReport
Posted on by

Hi all,

We have a requirement like..we have 2entities "a" and "b" and having relationship 1(a) to n(b)..in "b" entity there is a lookup of "a" and "a" entity records having multiple tasks for each record.Now i have to retrieve all the open tasks related to the lookup selected in entity "b" and have to create tasks in the entity "b" for that particular record of "b".What is the best approach to achive this?can i do retrievemultiple and executemultiplerequest in plugin?Please suggest me the best approach.

Thanks in advance! 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Sanjay ,

    For me I would suggest to use executemultiplerequest  , as you may have multiple tasks and you also need to create task in entity "b".

  • Verified answer
    Community Member Profile Picture
    on at

    I assume that you would not have more than 5000 tasks. So, you can use a retrievemultiple to get the related entity tasks & use an executemultiplerequest for the creation of the tasks.

  • Community Member Profile Picture
    on at

    thanks for your response goutam,yes i am thinking to follow that approach only.If you have any sample code on execute multiple request pls share with me and one more requirement is if we dont know what type of activity is in parent entity then how can we achieve this?i have to create that type of activity in its child also.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
  • Nflannery Profile Picture
    360 on at

    Even if there are more than 5000 results to return you can use paging to retrieve all.

    msdn.microsoft.com/.../gg327917.aspx

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