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 :
Microsoft Dynamics CRM (Archived)

How to Use CRUD with Xrm.WebApi.online.executeMultiple

(1) ShareShare
ReportReport
Posted on by 4,921

Hi community,

When i use the Xrm.WebApi.online.executeMultiple i have this error :

52551708263.Capture.PNG

this is my code :

function CreateReqs(_id, _price) {
    var reqObject = {};
        reqObject.Entity = { "@odata.type": "Microsoft.Dynamics.CRM.opportunityproduct",
                                                         "@opportunityproduct.id": _id };
        reqObject.Price= _price;                        
        reqObject.getMetadata = function () {
            var metadata = {
                boundParameter: "entity",
                operationType: 2,
                operationName: "Update",
                parameterTypes: {
                    "Entity": {
                        typeName: "Microsoft.Dynamics.CRM.opportunityproduct",
                        structuralProperty: 5
                    },
                    "Price": {
                        typeName: "Edm.Deciaml",
                        structuralProperty: 1
                    }            
                }
            };
            return metadata;
        }
        
    return reqObject;
}

Best

*This post is locked for comments

I have the same question (0)
  • Nirvana115 Profile Picture
    4,921 on at

    I'm alos trying boundParameter: undefined,

    but i have the same error.

    Best,

  • Nirvana115 Profile Picture
    4,921 on at

    Hi,

    When i use debugger, i find that this var is undefined

    $v_3.etn

    5314.08.PNG

    Tha var $v_3 contain my object:

    5314.08.PNG

  • Suggested answer
    Flydancer Profile Picture
    1,332 on at

    I'm not sure if that's the problem but you typed "Edm.Deciaml" instead of "Edm.Decimal"

  • Nirvana115 Profile Picture
    4,921 on at

    Hi,

    I corrected the TypeName to "Edm.Decimal" but  i have the Same error .

    Best,

  • Verified answer
    Nirvana115 Profile Picture
    4,921 on at

    Hi community,

    This is the correct way to use CRUD with Xrm.WebApi.online.executeMultiple:

    Add this 3 properties : payload (you data), etn (entity name), id (ID of entity)

    033.PNG

    Best,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans