Naman Bhardwaj
IndividualForum Replies Created
-
Naman
MemberAugust 11, 2016 at 7:42 am in reply to: Can we update custom setting using flows in Salesforce?Hi Ajit,
In update record option in flow, you need to select your custom setting and then select the field you need to update and finally give the updated value using Formula.
-
Naman
MemberJune 30, 2016 at 12:39 pm in reply to: How to do multiple if else statements in a formula field?Hi Nick,
Here we can use "CASE" Formula function in the formula fields.
CASE(CASE(abc_c, "A","A","B","B","") + CASE(def_c, "West", "West", "MidWest", "MidWest","") + CASE(ghi_c, "Elite","Elite","Preferred","Preferred","") , "AWestElite", 90000, "BMidWestPreferred", 50000,0)
-
Naman
MemberJune 22, 2016 at 11:11 am in reply to: Setup Product Images to display on Quote TemplatesHi Bruce,
We could use the Salesforce Content to store the image and can generate the public url of the same. But you need to make sure that the image is not added to the Libraries yet because after that you cannot generate the public url of your image. Create formula field using IMAGE tag and give src to your image url.
You have to make some changes in your Public url. For instance my public url for image is - https://cs44.salesforce.com/sfc/p/#7A000000Cq0q/a/7A0000004Ex1/k6Xrx12VdrGDttoF1GfB60Yn8uen5zJ_3.9NETWbjIA
To use the above url in formula field, you need to manipulate it like below:
String endUrl = contentVersionIDUrlMap.get(contentVer.ContentDocumentId).split('/a/',2)[1];
String host = URL.getSalesforceBaseUrl().toExternalForm();
String downUrl = host+'/sfc/dist/version/download ids='+contentVersion.id+'&oid='+orgId+'&d=/a/'+endUrl;And after that your url would be looking like below:
Now you can use this url into your formula field on product and this will result you the desired image.
Let me know if you need more info on this.
-
Naman
MemberApril 30, 2016 at 4:31 pm in reply to: How to rollback complete DML operation irrespective of batch size?You can set the database.savepoint and get rollback if any error occurs.
-
Naman
MemberApril 30, 2016 at 4:29 pm in reply to: Authentication of a User - how to check access on sObject?You need check isAccessibe permission.
-
Naman
MemberApril 30, 2016 at 4:23 pm in reply to: Is it possible to directly work with MySql Database from Salesforce?Go through https://skyvia.com/data-integration/integrate-salesforce-mysql
-
Naman
MemberApril 30, 2016 at 4:10 pm in reply to: Programatically check Governor limits through apex?You can use LIMIT class to check the governor limits.
-
Naman
MemberApril 30, 2016 at 4:03 pm in reply to: Not able to trigger a trigger by change in formula field?Because the fact is the Formula field does not fire the trigger but the roll up summary fires.
-
Naman
MemberApril 30, 2016 at 4:00 pm in reply to: Is there a way that batch class send only a single email with all errors' description?You can use stateful in your batch class and for failed record you can send email in finish method.
-
Naman
MemberApril 30, 2016 at 3:57 pm in reply to: Display Datetime on the basis of current user TimezoneYou need to figure out user current time first by querying user and then use date time class to convert the time according to current user. You need to pass the user current timezone as parameter.
-
Naman
MemberApril 29, 2016 at 8:00 am in reply to: What is the use of Junction Object in Salesforce?If you require to implement many to many relationship in salesforce, you need to go with Junction object.
-
Naman
MemberApril 29, 2016 at 7:58 am in reply to: How can I create custom object using the Metadata API from Apex?Go through http://salesforce.stackexchange.com/questions/20763/creating-a-custom-object-using-rest-api
-
Naman
MemberApril 29, 2016 at 7:55 am in reply to: How can I get the value of the dependent picklist ?You can use Metadata API via REST to get states. In my knowledge, we cant directly query it in apex.
https://success.salesforce.com/ideaView?id=08730000000keCTAAY
-
Naman
MemberApril 29, 2016 at 7:51 am in reply to: What are the reasons for data loss in Salesforce?Changing field type could cause the data loss. So we need to take backup of data first before doing so.
-
Naman
MemberApril 29, 2016 at 7:50 am in reply to: Can we use images of one static resource in another static resource on Visualforce page?You need to include the static resource in your vf page in which the image is stored.
-
Naman
MemberApril 29, 2016 at 7:01 am in reply to: Can we fetch detail of user to know how long he was active for a particular day?You can try with LoginHistory object.
-
Yes we can integrate Slack with Salesforce. For bi-directional integration you need to set it up in two steps:
- SF to Slack : You can implement Slack APIs to send information from SF to Slack.
- Slack to SF : You need to set the webhook in Slack that will send data back to SF whenever any event occurs there. Here is the link to the doc - https://api.slack.com/web
-
Naman
MemberApril 27, 2016 at 9:25 am in reply to: Should I use Javascript popup on standard VF page or a normal VF page which behaves as a popup?If you are sure that your customer will not use it in lightning, javascript pop up can also be used. Or we can use self look up to the same visualforce page based on certain conditions.
-
Naman
MemberApril 27, 2016 at 9:22 am in reply to: How to send a tabular report in mail to any user?We can make table of records through custom development and send that as email content.
-
It can't be disabled once activated.
-
Naman
MemberApril 27, 2016 at 8:22 am in reply to: Which one is best to choose among trigger or a workflow with a formula field?You can go either way but it more depends on your org. We should always try to accomplish the need first through using point and clicks and if the requirement is reach out then we may way to custom dev. If formula fields are already reaching to their limits than we can go for trigger.
-
Naman
MemberApril 27, 2016 at 7:56 am in reply to: Can we use Process Builder to schedule a Salesforce Apex Class?You can call apex method from process builder in which you can write code to schedule batch apex. To call a method in process builder you need to add annotation @InvocableMethod while defining method.
-
Naman
MemberApril 27, 2016 at 7:51 am in reply to: Which is the best email integration app for Salesforce?Hard to say which is best. You need to find out your requirements and choose accordingly. Multiple apps are available on AppExchange.
-
Check one of your process builder is failing. Deactivate process builder and try again.
-
Naman
MemberApril 25, 2016 at 1:03 pm in reply to: Can we use external storage to store attachments in Salesforce?Yes but you need to authenticate to that 3rd party server whenever you want to perform action on that attachment like download or delete. In salesforce, a link can be shown like "download file", and when user clicks on the link, need to authenticate with that server and download file from the right path.