Find a value in array of objects (JavaScript)

This post will discuss how to find a value in an array of objects in JavaScript. 1. Using Array.prototype.find() function The recommended solution is to use the find() method that returns the first occurrence of an element in the array that satisfies the given predicate. The following code example demonstrates this by finding a person with the name John. var… Continue reading Find a value in array of objects (JavaScript)

How to pass our object to render method in script and access in the PDF template

Here we can pass an object to render method to print the PDF .   // Load the item fulfillment record                     let itemFulfillmentRecord = record.load({                         type: ‘itemfulfillment’,            … Continue reading How to pass our object to render method in script and access in the PDF template

Create custom records using recmach function in script

The word recmach is attached to the custom records id when the record is attached into another record. We can use this function to create custom records instead of using record.create function. So, the governance limit is controlled.   newRecord.selectNewLine({ sublistId: ‘sublistid’ });                     newRecord.setCurrentSublistValue({  … Continue reading Create custom records using recmach function in script