Notifications
Announcements
No record found.
Hello Everyone.
How can I do a retrieve multiple in C#, i need a plugin for when i create a register it ill autofill one of the form fields.
Can anyone help me ?
*This post is locked for comments
You can use a FetchExpression:
Service.RetrieveMultiple(new FetchExpression(your fetch xml query method goes here));
Or you can use a QueryExpression:
QueryExpression query = new QueryExpression("your entity");
query.ColumnSet.AddColumn("field to return");
query.Criteria.AddCondition("statuscode", ConditionOperator.Equal, 1);
EntityCollection example = Service.RetrieveMultiple(query);
Hi ,
Please check below reference -
missdynamicscrm.blogspot.com/.../intercept-columnfield-value-in-crm-view-retrievemultipleplugin.html
In this line " query.Criteria.AddCondition("statuscode", ConditionOperator.Equal, 1);" where is written statuscode i ll put a field that i want to use as parameter ?
use this
string myFetchXml = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>" + "<entity name='opportunityproduct'>" + "<attribute name='opportunityproductid' />" + "<filter type='and'>" + "<condition attribute='opportunityid' operator='eq' uitype='opportunity' value='"+id+"' />" + "</filter>" + "</entity>" + "</fetch>"; EntityCollection fetchxmlResult = service.RetrieveMultiple(new FetchExpression(myFetchXml));
to set the value of an entity into in a field in another entity, how coud i do it ?
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