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
chandra prakash 58chandra prakash 58 

Create a record when click on a custom button

I have two custom object with same and equal fields,
1. sales quote
2. order header
I want a custom button "create order" in sales quote object.
and on sales quote object have a picklist field name quote status.
My requirement is,
when quote status =approved
then when clicking on "Create order" button, then create a record in order header object with same as sales quote field value.
Most welcome for suggestion and solution
please help...ASAP
Thaanks in Adv.
ANUTEJANUTEJ (Salesforce Developers) 
Hi Chandra Prakash,

You could do something like this present in the below link that I found on searching for implementation.

>>https://trailblazers.salesforce.com/answers?id=90630000000gy9IAAQ

This seems to be of a similar use case I hope this helps.

Regards,
Anutej
chandra prakash 58chandra prakash 58
Hi ANUTEJ,
  thank you for your response, i am new in salesforce so i am not good in apex coding and vf coding. please help. thanks