Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 gcurato82
		
			gcurato82
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Good morning,
I’m trying to make an API call with the tRESTClient component, to get me to return the access token for Microsoft.
unfortunately I continue to receive this error (img1)
, the flow at the moment is drawn so (img2)
Can someone give me a solution?
thanks to anyone who will help me
best regards
 
					
				
		
Hi
The error message indicates the request body must contain the following parameters..., I recommend double-checking the body format and parameter values.
Regards
Shong
 gcurato82
		
			gcurato82
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		thank you for your answer.
how can I verify the body of the request?
 
					
				
		
Do you have the link of online API documentation page? I would like to take a look at it.
Can you please share a screenshot of tXMLMap?
 gcurato82
		
			gcurato82
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Shong,
This is the screen of the tXMLMap component.
documentation is what you can find at this link
https://learn.microsoft.com/it-it/power-bi/developer/embedded/embed-tokens?tabs=embed-for-customers#embed-token
this section specifies:
thank you very much
best regards
 
					
				
		
I see you let the grant type value as empty, set it as "your_authorization_code_value" and double check all the required parameters.
 gcurato82
		
			gcurato82
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Thanks I did not realize that a link is missing...I have reverted the values and they are correct...unfortunately I still receive the error message:
while from Postman I have no mistakes:
 
 
					
				
		
Have a try to use tRest component instead of tRestClient component, add a Headers for Content-Type as "application/x-www-form-urlencoded", add the http body as like below:
"key1=value1&key2=value2&other_keys_values_pairs"
let me know if it works.
 gcurato82
		
			gcurato82
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Shong,
unfortunately I continue to receive this error:
this is the configuration of the trest component:
