You need to sign in to do that
Don't have an account?
Nuno.Carvalho
Hello, i need some help
I need to copy a currency field on the standard object “contract” called salary__c to the right player on the costum object “players__c” and the field has the same name. I got 5 record types on contract , the one with that field is Transfer.
Thanks in advance.
Nuno C
Thanks in advance.
Nuno C
Please let me know if the objects are related. If so can you tell me the type of relationship ? Who is the Parent/Child ?
Happy to help,
Shruti
The parent object is Contract and the child object is players__c,
Tell me if you need more info.
Or do you need some more info?
Each contract is unique for each player, they just have different record types.
Mark as best answer if this solves your problem.
It shows an error on line 3 , on RecordTypeId,
I tried to change the name , but it wont work...
Compile Error: unexpected syntax: 'missing RSQUARE at ')'' at line 12 column 99.
Now it shows the error shown before, "Compile Error: Variable does not exist: recordtypeid at line 7 column 22".
Kindly mark as Best Answer
Now it gives his error... Compile Error: Method does not exist or incorrect signature: void add(Id) from the type Set<Contract> at line 4 column 25, never saw this one could you help? sorry.
Kindly mark as Best Answer if this is fixed
Hi Nuno,
This method works if you are sure that the salary on the Player__c object never changes. The advantage of this method is, it does not require any code and if you change the salary on the Contract object, the salary value on the corresponding player object will also change automatically.You can simply create a Formula field of return type Currency on the Player__c object which would capture the Salary__c value from the Contract object which is its parent object.
In the formula field, you can write the below code -