web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / CRM TIPS By PRM / Part-7: Extract and Capture...

Part-7: Extract and Capture CRMWRPCToken from CRM Requests

P. R. M Profile Picture P. R. M 739

Web Performance Test Recorded scenario generates “Data.aspx” on Clicking “+New” button or onloading Existing Record. This Requests get a new CRMWRPCToken for each request. We need to Extract this Token from the Request and send back with Create/Update request with Header.

Please find below steps to Extract CRMWRPCToken from “Data.aspx” request:

1. Record the Create request (Ex: Create Account) by using Web Performance Test (Please refer Part-3 for the same)

2. Go to recoded Webtest

3. Find the request like “…/form/data.aspx”. This is the request execute when we initiate the Create request (Clicking +NEW). CRM sends WRPC_TOKEN as part of this response.

CRMWRPCToken Extraction Rule:

1. Right click on Data.aspx and select “Add Extraction Rule”

clip_image002

2. Right click on created Rule – Select Properties

3. Provide the Properties as below:

CRMWRPCToken

[\{“]Token”?:\s?[‘”]([a-zA-Z0-9\\/+]{24,})[‘”]

clip_image004


CRMWRPCTokenTimeStamp Extraction Rule:

1. Right click on Data.aspx and select “Add Extraction Rule”

2. Right click on created Rule – Select Properties

3. Provide the Properties as below:

CRMWRPCTokenTimeStamp

“?Timestamp”?:\s?”([0-9]{12,})”


This was originally posted here.

Comments

*This post is locked for comments