SBX - Search With Button

SBX - Forum Post Title

Do we need AccesToken to consume crm rest api from Plugin ?

Microsoft Dynamics CRM Forum

Keysersozeey asked a question on 12 Aug 2018 11:54 PM
My Badges

Question Status

Verified

Do i need add accestoken to my header , when we try to consume crm rest api for my plugin, because when on client side we don't need to add acces token on our header, we can just hit the crm rest api.

Reply
Ravi Kashyap responded on 13 Aug 2018 12:10 AM
My Badges
Verified Answer

Hi,

No, you don't need access token to consume web api from plugin. The plugins runs along with the system operation and under the context of user initiated the event (mostly unless it is configured to run it under specific user context).

Hope this helps.

Reply
Verified Answer

You don't  need the access token as far as I know. Authentication token required when your code executed outside of CRM like a portal or other integration apps.

Reply
Keysersozeey responded on 13 Aug 2018 12:28 AM
My Badges

thanks for your answer.  

Reply
Ravi Kashyap responded on 13 Aug 2018 12:10 AM
My Badges
Verified Answer

Hi,

No, you don't need access token to consume web api from plugin. The plugins runs along with the system operation and under the context of user initiated the event (mostly unless it is configured to run it under specific user context).

Hope this helps.

Reply
Verified Answer

You don't  need the access token as far as I know. Authentication token required when your code executed outside of CRM like a portal or other integration apps.

Reply

SBX - Two Col Forum

SBX - Migrated JS