cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kaanand
New Member

AddUserToRecordTeam - could someone explain me what are the parameters while adding user in the access team template on custom entity.

Kaanand_0-1637953843526.png

Where I need to put userid, custom recordid ? teamtemplateid I can see it in the list. I have tried several options but getting error like -

 

 "An error occurred while validating input parameters: Microsoft.OData.ODataException: One or more parameters of the operation 'AddUserToRecordTeam' are missing from the request payload. The missing parameters are: Record.
at Microsoft.OData.ODataParameterReaderCore.EnterScope(ODataParameterReaderState state, String name, Object value)
at Microsoft.OData.JsonLight.ODataJsonLightParameterDeserializer.ReadNextParameter(PropertyAndAnnotationCollector propertyAndAnnotationCollector)
at Microsoft.OData.ODataParameterReaderCore.ReadImplementation()
at Microsoft.OData.ODataParameterReaderCore.InterceptException[T](Func`1 action)
at Microsoft.Crm.Extensibility.ODataV4.CrmODataActionPayloadDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)
at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)"

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kaanand
New Member

Thank you for the reply. But found my mistake - I was passing Role Id as lookup, it should be only GUID.

View solution in original post

3 REPLIES 3
v-qiaqi-msft
Community Support
Community Support

Kaanand
New Member

Thank you for the reply. But found my mistake - I was passing Role Id as lookup, it should be only GUID.

hillaryzhy
New Member

Hi Kaanad, could you share your solution? I am seeing the same error as you do. I passed Contact GUID into it but still error. What I did: Row Id = the contact I want to add to the access team,  TeamTemplateid = GUID of the access team template. Thank you so much! I appreciated your help!

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,603)