-
ChatterFeed
-
0Best Answers
-
1Likes Received
-
0Likes Given
-
15Questions
-
4Replies
Algo to distribute a amount equally over 3 years
I have a usescase where i need to distribute a amount for period of 3 years.
If example total is 36k and if the start date is in Jan 2016 then the amount is dristributed as 12k for 16,17 & 17.
But if the start date is in Oct 2015 then the amount will be
2015 = 3k
2016 = 12k
2017 = 12k
2018 = 9k
Each of the amounts will be stored in the specific field, how cn i create a algo for it.
thank you for suffestion
-
- Sandrine94748
- January 30, 2018
- Like
- 0
- Continue reading or reply
Select records from related list and send email to contacts linked in the object
Hello,
I have a junction object between and contact and a custom object like below
Custom_object_X__C
- Id
Jucntion__c
-Id
- LookUpToJCustom_object_X__c
-LookUpToContact__c
Contact
-Id
On the custom object there is a related list of Jucntion__c, so in page layout it is like below
Record of Custom_object_X
- Name
- Picklist X
- ......
- ....
>Related list 1
>Related list to display Jucntion (This related list will also display the contact it is related to in one of the column)
Use case:
I want a custom button to select few records of junction and send an email to contacts. also if possible to select the emil template of choice
Like below, we are abe to select the quote, simillarly i want to able to select the records on junction object and send email to Quote
thanky you for sugetion
-
- Sandrine94748
- January 25, 2018
- Like
- 0
- Continue reading or reply
FLS settings for one user
I have a user with a profile.
I want to make changes in FLS only for this user.
how can i implement it ?
-
- Sandrine94748
- January 10, 2018
- Like
- 0
- Continue reading or reply
calling webservice in future handler from a trigger | Error | System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out
I have following error:
System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out
My usecase:
I am calling a webservice in a future handler.
Other workaround i tried:
I tried to call the webservice without a future handler, but as i am calling in trigger it is giving me error.
Can someone please tell me any workaroud ?
thank you
-
- Sandrine94748
- January 05, 2018
- Like
- 1
- Continue reading or reply
Trigger Asset before update | old map is same as new map
I wrote a trigger on before update for Asset.
When it reaches to my trigger, it is already updated hence i am not able to make difference between Old map and new map..
Is there any way where i can ask my trigger to execute before other trigger..
This behavious is strange for me too..
thank you for any suggestions
-
- Sandrine94748
- December 12, 2017
- Like
- 0
- Continue reading or reply
Call webservice from Salesforce
Hello,
I want to call a webservice with a POST method.
I have a webservice link, JSON file a,d i know that it accepts post method.
I want to know how can i call this service from Salesforce
thank you for suggestions
-
- Sandrine94748
- December 05, 2017
- Like
- 0
- Continue reading or reply
searching for links to construct a JSON file
I want to construct a JSON file in Apex, is there any code to parse the for loop and construct a JSON file.
Thank you for suggestion !
-
- Sandrine94748
- November 29, 2017
- Like
- 0
- Continue reading or reply
Impact of currency in a custom object
I created a custom object . currency is a default standard object with default currenc as USD.
I use this object in various objects, products, pricebook, etc. is there any impact ?
thanks for replying
-
- Sandrine94748
- November 24, 2017
- Like
- 0
- Continue reading or reply
detecting mass update on Assets
is it possible in Apex class or Trigger to detect if there is an mass update on Assets ?
Thank you for reply
-
- Sandrine94748
- November 21, 2017
- Like
- 0
- Continue reading or reply
activating Allow users to relate a contact to multiple accounts
Are there any impact on exsisting or drawbacks of activating below option
Thanks for suggestion
-
- Sandrine94748
- October 06, 2017
- Like
- 0
- Continue reading or reply
associate a contact to multiple accounts
Is is possible to link same contact to two diffrent account ?
Thanks for feedback !
-
- Sandrine94748
- October 06, 2017
- Like
- 0
- Continue reading or reply
discount calculation in quote
How is discount calculated in quote and is it standard ?
-
- Sandrine94748
- September 28, 2017
- Like
- 0
- Continue reading or reply
Display text based on condition and in hyperlink
Hello,
I want to achieve two things in my formula:
1) Based on condition display text
2) Display that text in hyperlink
For example the algo is like
If(customField__C = 'PQR')
Then Display/text value is TT-PPQR
Else if(customField2__c == 'ERT')
Then Display/text value is TT-ERT
Else
Display/text value is ZZR
I wantt o diplay them as hyperlink like when they click on them it should redirect them to www.ZZR.co.fr website
just an example
thanks for suggestion !
-
- Sandrine94748
- September 04, 2017
- Like
- 0
- Continue reading or reply
maintenance certification dev401
I no more see the DEV401 maintainance exam.
Can someone guide me ?
-
- Sandrine94748
- August 29, 2017
- Like
- 0
- Continue reading or reply
Get the value of custom field using sObject
I am trying to get a value of custom field using sObject.
Can someone help me with this
sObject sObj = new QuoteLineItem(); for (QuoteLineItem q : qli){ sObj = q; System.debug('$$$'+q.Product2.Obj1__r.cf1__c); //output is TRUE as field is a boolean System.debug('$$$'+String.valueOf(q.Product2.Obj1__r.cf1__c)); //output is TRUE System.debug('$$$'+string.isNotBlank(String.valueOf(q.Product2.Obj1__r.cf1__c))); //output is TRUE if(string.isNotBlank(String.valueOf(sObj.get(fieldToCompare)))) { //ERROR: Invalid field Product2.Obj1__r.cf1__c) //Do something } }
I am obliged to use SObject as i have specific use case.
I just want to get the value of Product2.Obj1__r.cf1__c using sObject.
i am able to retrive it using q.Product2.Obj1__r.cf1__c but as in sObject, there is missing q, this can be the reason it is not retriving.
thanks for suggestion
-
- Sandrine94748
- August 21, 2017
- Like
- 0
- Continue reading or reply
calling webservice in future handler from a trigger | Error | System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out
I have following error:
System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out
My usecase:
I am calling a webservice in a future handler.
Other workaround i tried:
I tried to call the webservice without a future handler, but as i am calling in trigger it is giving me error.
Can someone please tell me any workaroud ?
thank you
-
- Sandrine94748
- January 05, 2018
- Like
- 1
- Continue reading or reply
Algo to distribute a amount equally over 3 years
I have a usescase where i need to distribute a amount for period of 3 years.
If example total is 36k and if the start date is in Jan 2016 then the amount is dristributed as 12k for 16,17 & 17.
But if the start date is in Oct 2015 then the amount will be
2015 = 3k
2016 = 12k
2017 = 12k
2018 = 9k
Each of the amounts will be stored in the specific field, how cn i create a algo for it.
thank you for suffestion
- Sandrine94748
- January 30, 2018
- Like
- 0
- Continue reading or reply
Select records from related list and send email to contacts linked in the object
Hello,
I have a junction object between and contact and a custom object like below
Custom_object_X__C
- Id
Jucntion__c
-Id
- LookUpToJCustom_object_X__c
-LookUpToContact__c
Contact
-Id
On the custom object there is a related list of Jucntion__c, so in page layout it is like below
Record of Custom_object_X
- Name
- Picklist X
- ......
- ....
>Related list 1
>Related list to display Jucntion (This related list will also display the contact it is related to in one of the column)
Use case:
I want a custom button to select few records of junction and send an email to contacts. also if possible to select the emil template of choice
Like below, we are abe to select the quote, simillarly i want to able to select the records on junction object and send email to Quote
thanky you for sugetion
- Sandrine94748
- January 25, 2018
- Like
- 0
- Continue reading or reply
calling webservice in future handler from a trigger | Error | System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out
I have following error:
System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out
My usecase:
I am calling a webservice in a future handler.
Other workaround i tried:
I tried to call the webservice without a future handler, but as i am calling in trigger it is giving me error.
Can someone please tell me any workaroud ?
thank you
- Sandrine94748
- January 05, 2018
- Like
- 1
- Continue reading or reply
Get the value of custom field using sObject
I am trying to get a value of custom field using sObject.
Can someone help me with this
sObject sObj = new QuoteLineItem(); for (QuoteLineItem q : qli){ sObj = q; System.debug('$$$'+q.Product2.Obj1__r.cf1__c); //output is TRUE as field is a boolean System.debug('$$$'+String.valueOf(q.Product2.Obj1__r.cf1__c)); //output is TRUE System.debug('$$$'+string.isNotBlank(String.valueOf(q.Product2.Obj1__r.cf1__c))); //output is TRUE if(string.isNotBlank(String.valueOf(sObj.get(fieldToCompare)))) { //ERROR: Invalid field Product2.Obj1__r.cf1__c) //Do something } }
I am obliged to use SObject as i have specific use case.
I just want to get the value of Product2.Obj1__r.cf1__c using sObject.
i am able to retrive it using q.Product2.Obj1__r.cf1__c but as in sObject, there is missing q, this can be the reason it is not retriving.
thanks for suggestion
- Sandrine94748
- August 21, 2017
- Like
- 0
- Continue reading or reply