Ratan Paul
IndividualForum Replies Created
-
Ratan Paul
MemberNovember 2, 2017 at 6:26 AM in reply to: Insufficient access right to user error while accessing email attachments in Salesforcecan you check the what is the OWD ? may be issue with this?
-
Ratan Paul
MemberOctober 6, 2016 at 11:17 AM in reply to: Not able to use custom setting in a Salesforce formula fieldthere is a post in idea exchange https://success.salesforce.com/ideaview?id=08730000000I5NsAAK
-
Ratan Paul
MemberOctober 6, 2016 at 10:49 AM in reply to: Salesforce Apex Code to Post a Chatter PostSo you need to use chatter api.
check this https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_post_feed_element_mention.htm
ConnectApi.FeedItemInput feedItemInput = new ConnectApi.FeedItemInput();
ConnectApi.MentionSegmentInput mentionSegmentInput = new ConnectApi.MentionSegmentInput();
ConnectApi.MessageBodyInput messageBodyInput = new ConnectApi.MessageBodyInput();
ConnectApi.TextSegmentInput textSegmentInput = new ConnectApi.TextSegmentInput();messageBodyInput.messageSegments = new List<ConnectApi.MessageSegmentInput>();
mentionSegmentInput.id = '005RR000000Dme9';
messageBodyInput.messageSegments.add(mentionSegmentInput);textSegmentInput.text = 'Could you take a look?';
messageBodyInput.messageSegments.add(textSegmentInput);feedItemInput.body = messageBodyInput;
feedItemInput.feedElementType = ConnectApi.FeedElementType.FeedItem;
feedItemInput.subjectId = '0F9RR0000004CPw';ConnectApi.FeedElement feedElement = ConnectApi.ChatterFeeds.postFeedElement(Network.getNetworkId(), feedItemInput, null);
-
Ratan Paul
MemberOctober 6, 2016 at 10:30 AM in reply to: In Salesforce, what is the best solution to create a Button to send email to multiple contacts in Contact Related List?you can use webservice to send email. onclick of javascipt button call a apex class and send the email to related contacts
check this example for more info https://developer.salesforce.com/docs/atlas.en-us.workbook.meta/workbook/button_1.htm
-
Ratan Paul
MemberOctober 6, 2016 at 10:20 AM in reply to: How to know the API Name of Standard or Custom Salesforce Objects?if you don't want to use describe call etc then you can use eclipse to view all the fields name
And for all standard objects you can check the soap api documentation https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_acceptedeventrelation.htm
-
Ratan Paul
MemberOctober 6, 2016 at 9:31 AM in reply to: Is there any query in Salesforce to fetch all the fields on the entity?if you are looking for feature like sql select * from table_name then I say no. In salesforce there is no feature like that. And if you want to create a utility class where you can pass the object name and get the all field and prepare soql query with all fields then solution is use decribe call to get the all fields name.
SObjectType accountType = Schema.getGlobalDescribe().get('Account');
Map<String,Schema.SObjectField> mfields = accountType.getDescribe().fields.getMap(); -
Ratan Paul
MemberOctober 6, 2016 at 9:27 AM in reply to: How to auto populate the field on the selecting the contact from the lookup field in salesforce?if this is the standard page then you can't do it. You can populate those field using workflow rules or process builder . based on contact value get the all details and update the record.
-
Ratan Paul
MemberOctober 6, 2016 at 9:25 AM in reply to: In Salesforce, how to write a wrapper class to display records of an account with Pagination?This is really broad question. I suggest to check this example
-
Ratan Paul
MemberOctober 6, 2016 at 9:22 AM in reply to: How to add radio button to a pageblock table in salesforce?I suggest to use apex:inputcheckbox . Using this component you can bind the value easily
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_inputCheckbox.htm
-
Ratan Paul
MemberSeptember 26, 2016 at 10:49 AM in reply to: Why is it mandatory to enable custom domain in Salesforce in order to develop lightning apps?