You need to sign in to do that
Don't have an account?

How to update Lead Owner(standard field) in custom page using mobile.
I need to update owner(Standard Field) name on custom page(Buyer) using Referral Id(mobile of Lead owner)..
The Referral Id(Mobile No) already present in user details.
For example the buyer is created by me but i put the Referral Id was my manager mobile no.After created the Buyer i need to updated owner as my manager name not mine.Now it show my name.I don't want trigger without trigger,if there is any another way is possible???
The Referral Id(Mobile No) already present in user details.
For example the buyer is created by me but i put the Referral Id was my manager mobile no.After created the Buyer i need to updated owner as my manager name not mine.Now it show my name.I don't want trigger without trigger,if there is any another way is possible???
OR
You can use update DML, just after insertion to update OwnerId.
Thanks,
Nirmala
I did it by before insert,before update trigger and it was working fine in my sandbox and i create test class. when i move this to production it interfer the existing trigger.??? that's why i dont want trigger ??
when i click the deploy i will get the following error.
Your organization's code coverage is 2%. You need at least 75% coverage to complete this deployment. Also, the following triggers have 0% code coverage. Each trigger must have at least 1% code coverage.
You need to write unit test classes for the classes you are trying to deploy.
Org code coverage must be 75% overall, and Each trigger must have at least 1% code coverage.
I am new to salesforce and i write trigger and test class.Both are working fine in sandbox when i deploy it will interfer the existing test class.
I dont know how to do it
Thanks,
Parker
There is three condition
1.Buyer is not available record will not create,and throw the error msg like,"Referral id is not found"
2.Buyer(Referral Id) is inactive record will not create,and throw the error msg like,"User is Inactive"
Thanks,
Parker
It is the input field not lookup fields. I write the trigger and test class it was working fine(sandbox). but when i move to production it shows the
It was affected existing test class.Thats why i avoid the trigger and workflow....
- Create a process that when the Buyer is created, it re-populates the owner field with the manager of the user that created the record, if they have a manager. I have already outlined this in my second reply.
- Create a process that launches a flow. When the Buyer is created, it immediately goes to the actions and calls a flow. You will need to create within the flow an sObject variable and pass the record that started the process to it. For the purpose of this outline, we'll call it "Buyer." The flow should start with a Record Lookup Element, and lookup a user that has a phone number equal to the Reference Id. Save the user that was found to a new sObject variable. The flow will then need to use a Record Update Element that looks up a Buyer record with an Id equal to {!Buyer.Id}, or the Id of the record that started the process. To set the new owner, Owner must reference the Manager Id when you set new values.
Note that with either method you use, you may, and probably will, need to add some additional criteria either on the criteria node, or if you choose to go with option 2, you may use a Decision Element to filter the records you update.If you run into difficulties building the process and/or flow, or have additional questions, please ask below and if possible/relevant give some screenshots of your process/flow.
Thanks,
Parker