function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Devika GoelDevika Goel 

How to auto populate data on behalf of other fields.

Hello Everyone,

I am working on a project in which I have created few custom objects. Now I am trying to achieve that I have two objects one is Inventory and another is Sales.

So if I get any order place under sales. It should fetch the data from Inventory object and at same time update fields under Inventory object.

Suppose I have 100 gift box inventories available and got the order of 20 gift box. Now I want Available field and Sold field update automatically to 80 and 20.

Is that possible to do without any code?
Ganesh PadoleGanesh Padole
Dear Devika,

I think, first you should creat relationship between Inventories and Sales.
And you can achive your requirement with Workflow OR trigger easily.
Thankyou.