SaaS News Hubb
Advertisement
  • Home
  • News
  • Software Engineering
  • Software Development
  • SAAS Applications
  • Contact Us
No Result
View All Result
  • Home
  • News
  • Software Engineering
  • Software Development
  • SAAS Applications
  • Contact Us
No Result
View All Result
SaaS News Hubb
Home SAAS Applications

Javascript object filter – Microsoft Dynamics CRM Forum Community Forum

by admin
May 28, 2022
in SAAS Applications
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


as I understood you are trying to clone a record.

From my perspective you have two problems:

1) the Xrm.WebApi retrieves also the formatted values and add some additional fields like the etag, I am not sure that just removing the id attribute (in your case salesorderdetailid) will be enough to create a valid object for the createRecord function

2) the salesorderdetail is a tricky entity, generally you need to pay more attention on the columns you are passing to create a record under this entity than another one (like a contact for example)

however in your code you can avoid the filter, that is nice until someone else not understanding it checks your code and proceed with a standard creation and assignment, like

let newRecord = {};

newRecord[“quantity”] = salesorderdetail[“quantity”[;

etc etc, filling only the properties you need.

if you want to copy all the properties regardless I suggest to switch to another way to retrieve the record (like fetchAPI) where you can disable by an header the return of formatted values and deal with less properties.

hope it helps



Source link

Previous Post

Build a Nimble, Responsive Supply Chain with Cloud ERP

Next Post

25 Cardboard Box Packaging Mockup Templates for Photoshop

Related Posts

SAAS Applications

Mail & Calendar Integrations in Sell Premier

July 1, 2022
SAAS Applications

Export Customer Service Schedule (Business Hours) within a Solution

July 1, 2022
SAAS Applications

Exploring Gorilla Expense’s Microsoft Dynamics Integration

July 1, 2022
SAAS Applications

Customer Spotlight: Cornell Cooperative Extension, Acumatica’s 2022 Impact Customer of the Year

July 1, 2022
SAAS Applications

Communication is the Key to Quality Management Success

July 1, 2022
SAAS Applications

Sales Automation Comparison: Your Best CRM Fit

June 30, 2022

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Popular

News

How Customer Loyalty Can Drive B2B SaaS Business Growth

July 1, 2022
What is Gross Revenue? [+ How to Calculate & Record It]
News

What is Gross Revenue? [+ How to Calculate & Record It]

July 1, 2022
Software Engineering

Write Better Commits, Build Better Projects

July 1, 2022
Software Engineering

The Overflow #132: The 2022 Dev Survey results!

July 1, 2022
Software Engineering

A Guide to Animating Mobile Data Visualizations

July 1, 2022
Software Engineering

Earthly Builds with Adam Gordon Bell

July 1, 2022
Software Development

Pluralsight LIVE 2021 Week 1 recap: Stronger together

July 1, 2022
Software Development

Weekly News for Designers № 650

July 1, 2022
Software Development

What is Web 3.0 and Why it Matters for Your Business?

July 1, 2022

© 2022 Sass News Hubb All rights reserved.

Use of these names, logos, and brands does not imply endorsement unless specified. By using this site, you agree to the Privacy Policy

Navigate Site

  • Home
  • News
  • Software Engineering
  • Software Development
  • SAAS Applications
  • Contact Us

Newsletter Sign Up

No Result
View All Result
  • Home
  • News
  • Software Engineering
  • Software Development
  • SAAS Applications
  • Contact Us