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

webapi error when i create record with javascript

i got an error when i use the webapi to create a record according to  the link below

https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-perform-operations

 

the ajax response is: {error: {code: "9004010A", message: "An unexpected error occurred while processing the request"}}

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jayhe
New Member

Thank you for your reply @ragavanrajan 

I have found my mistake that it should be a json string but not a object when post data.😂

View solution in original post

4 REPLIES 4
ragavanrajan
Super User
Super User

Hi @Jayhe ,

 

Could you please confirm your portal version? Portal version must be 9.2.6.41 to perform the operation

Jayhe
New Member

Hi

my portal version is 9.3.1.19

portal url is : https://jaytestportalen.powerappsportals.com/purchaseorder/

Hi @Jayhe ,

 

Thanks for confirming the portal version.

 

Could you please follow the article by @OOlashyn

https://www.dancingwithcrm.com/powerapps-portal-web-api-deep-dive/ 

 

And make sure to add the site settings,  then in portal studio press sync configuration. 

 


------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Jayhe
New Member

Thank you for your reply @ragavanrajan 

I have found my mistake that it should be a json string but not a object when post data.😂

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (55,092)