Link to home
Start Free TrialLog in
Avatar of pratikshahse
pratikshahse

asked on

CRM Plug-in

I have a form in CRM called "Manual Purchase". By using a plug - in I want to retrieve the columns on that form and read the data out of that. Can someone tell me what kind of code I will need in order to retrieve the entity and then go through the controls of the entity.
I have attached a piece of code which does the same kind of stuff with "Opportunity" screen.
The problem I have is that I do not have somethng similiar to "TargetRetrieveOpportunity" for Manual Purchase,something like "TargetRetrieveManualPurchase" or similiar.

TargetRetrieveOpportunity target = new TargetRetrieveOpportunity();
                            target.EntityId = opportunityID;
                            RetrieveRequest retrieve = new RetrieveRequest();
                            retrieve.Target = target;
                            retrieve.ColumnSet = new AllColumns();
                            retrieve.ReturnDynamicEntities = true;
                            RetrieveResponse retrieved = (RetrieveResponse)service.Execute(retrieve);

Open in new window

Avatar of rakeshAgarwal
rakeshAgarwal
Flag of India image

You have to use dynamic entity.  You have to go through sdk to learn this.  I will pass on the code if i get one

regards
Rakesh Agarwal
ASKER CERTIFIED SOLUTION
Avatar of Biffster007
Biffster007
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial