Piyush
IndividualForum Replies Created
-
Piyush
MemberNovember 26, 2019 at 5:35 am in reply to: How can we automatically open a record page in salesforce using apex ?Hi,
Have a look to the following URL. This will help you to resolve your query:-
https://developer.salesforce.com/forums/?id=9062I000000XjxMQAS
-
Piyush
MemberNovember 26, 2019 at 5:16 am in reply to: How to use Platform Event with rest API in salesforce?Hi,
Retrieving data/v40.0/sobjects/ will give you all objects in the Org, including platform events. Since all platform events end in __e, you can just take the result and filter out those whose name ends in __e.
-
Piyush
MemberNovember 25, 2019 at 6:29 am in reply to: How to get actions on standard New button using Metadata in Salesforce?Hi Prachi,
Have a look to the following Url. I am sure that this will help you to find your answer:-
-
Piyush
MemberNovember 25, 2019 at 6:25 am in reply to: How can we catch save button action in lightning:listView in Salesforce?Hi Yogesh,
Can you please elaborate more about your question /senerio that what you want to do.
-
Piyush
MemberNovember 25, 2019 at 6:18 am in reply to: how to get index number of a row in table in aura iteration in Salesforce?Hi,
I am sharing an example you can take help from this for your senerio:-
<a href="javascript:void(0);" id="{!idx}" onclick="{!c.editAffiliation}">Edit</a> editAffiliation : function(component, event, helper) { helper.editRecord(component, event); } editRecord : function(cmp, ev) { var afList = cmp.get('v.afList'); var affiliation = afList[ev.srcElement.id]; this.openModal(affiliation); }
-
Piyush
MemberNovember 25, 2019 at 6:16 am in reply to: How can we put a conditional formula as a value of disabled attribute in a Salesforce lightning tag?Hi Yogesh,
Check this but i am not sure that it work:-
Disable: component.find("street").set("v.disabled", true); Enable: component.find("street").set("v.disabled", false);
For more check the Url:-
-
Hi Prachi,
use these formula:-
IF(ISPICKVAL(SVMXC__Country__c ,'UK') && INCLUDES( $User.TestMultiSelectCountry__c ,"UK"),true, IF(ISPICKVAL(SVMXC__Country__c ,'BR') && INCLUDES( $User.TestMultiSelectCountry__c ,"BR"),true, IF(ISPICKVAL(SVMXC__Country__c ,'SA') && INCLUDES( $User.TestMultiSelectCountry__c ,"SA"),true, IF(ISPICKVAL(SVMXC__Country__c ,'TH') && INCLUDES( $User.TestMultiSelectCountry__c ,"TH"),true, IF(ISPICKVAL(SVMXC__Country__c ,'US') && INCLUDES( $User.TestMultiSelectCountry__c ,"US"),True,False)))))
-
Piyush
MemberNovember 25, 2019 at 6:03 am in reply to: What is the max xml file size that ANT support to retrieve and deploy the data in salesforce?Hi Deepak,
Take help from the following link for the max xml file size that ANT support to retrieve and deploy the data in salesforce:-
https://success.salesforce.com/answers?id=9063A000000tCV1QAM
-
Piyush
MemberNovember 25, 2019 at 6:01 am in reply to: Can we edit Mobile App Salesforce Navigation through code / callouts to Metadata?Hi,
Yes,you can edit Mobile App Salesforce Navigation through code / callouts to Metadata. It should be under "AppMenu" metadata ("Salesforce1.appMenu"). You should be able to pull the changes and push the changes through metadata with the following structure:
<AppMenu xmlns="http://soap.sforce.com/2006/04/metadata"> <appMenuItems> <name>MyDay</name> <type>StandardAppMenuItem</type> </appMenuItems> <appMenuItems> <name>Tasks</name> <type>StandardAppMenuItem</type> </appMenuItems> <appMenuItems> <name>Feed</name> <type>StandardAppMenuItem</type> </appMenuItems> <appMenuItems> <name>Dashboards</name> <type>StandardAppMenuItem</type> </appMenuItems> <appMenuItems> <name>Search</name> <type>StandardAppMenuItem</type> </appMenuItems> <appMenuItems> <name>Events</name> <type>StandardAppMenuItem</type> </appMenuItems> <appMenuItems> <name>DE_Widget</name> <type>CustomTab</type> </appMenuItems> </AppMenu>
-
Hi,
You can take help to Handle Required fields error for Button & Dropdowns from the following Url:-
https://ctrlq.org/code/19226-missing-required-fields-on-form-submit
-
Piyush
MemberNovember 22, 2019 at 7:21 am in reply to: How to provide security for Meta-Data files (Schema) in Salesforce?Hi,
We can provide security for Meta-Data files (Schema) in Salesforce by Using Profiles and Permission Sets.
-
Piyush
MemberNovember 22, 2019 at 5:10 am in reply to: How to create a child record from parent when external id is updated on parent record in Salesforce? -
Piyush
MemberNovember 22, 2019 at 4:33 am in reply to: How to get a free user acount on autorabit for demo in Salesforce?Hi Deepak,
You can directly request for demo on https://www.autorabit.com/contact/
-
Piyush
MemberNovember 21, 2019 at 11:55 am in reply to: How to I get the Id of the record the file was uploaded under?Hi,
You can use the following but i am not sure that this is working:-
SELECT Id, LinkedEntityId, ContentDocumentId, Visibility, IsDeleted, ShareType, ContentDocument.Title, ContentDocument.createdDate, ContentDocument.FileType FROM ContentDocumentLink WHERE LinkedEntityId = '5000Y000999MQKTQA4'
-
Piyush
MemberNovember 20, 2019 at 1:17 pm in reply to: Is it possible to export all attachments for a specific object like cases in salesforce?Hi,
You can use the following query for this:-
SELECT Id, Name, ParentId, Parent.Type FROM Attachment where Parent.Type = 'Case'
-
Piyush
MemberNovember 20, 2019 at 1:14 pm in reply to: How would someone know what object "Notes and Attachments" fall under in salesforce?Hi,
You can use the following query:-
SELECT Body,Id,OwnerId,ParentId,Title FROM Note
-
Piyush
MemberNovember 20, 2019 at 1:13 pm in reply to: What is the use of $A.localizationService() ?Hi,
Use $A.localizationService to use the methods in AuraLocalizationService. Lightning framework provides client-side localization support on input/output elements. This helps in customize the date and time format. To customize date and time format use, lightning:formattedDateTime.
-
Piyush
MemberNovember 20, 2019 at 11:44 am in reply to: Where can I see the fields of Attachment object? I am unable to find in Setup —> Customize it in Salesforce?Hi,
You Can see the following url and take help from it :-
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_attachment.htm
-
Piyush
MemberNovember 20, 2019 at 11:41 am in reply to: How to get files from document object in Salesforce?Hi,
Click the search icon to display a list of available documents for this form. Select Documents to display documents from the Document object and Files to display files from libraries. Note: You can also select a specific folder to display the files inside this folder. Click the document you want to add to the form.
-
Piyush
MemberNovember 20, 2019 at 10:33 am in reply to: What is the use of <aura:set attribute="else"> in Salesforce lightning component?Hi,
aura:if evaluates the isTrue expression on the server and instantiates components in either its body or else attribute. Only one branch is created and rendered. Switching condition unrenders and destroys the current branch and generates the other
<aura:component> <aura:if isTrue="{!v.truthy}"> True <aura:set attribute="else"> False </aura:set> </aura:if> </aura:component>
-
Piyush
MemberNovember 19, 2019 at 9:27 am in reply to: Is there any way to close a modal box on focus in Salesforce?Hi Yogesh,
Can you please elavorate more about your problem.
-
Piyush
MemberNovember 19, 2019 at 9:21 am in reply to: How to trim sapce between two strings and after/before a string in Salesforce?Hi Yogesh,
You can use the following line to trim the space between the strings:
string = str.replaceAll("\s+"," ");
-
Piyush
MemberNovember 19, 2019 at 4:32 am in reply to: Can we upsert record in Salesforce using web to lead?Hi Deepak,
Yes, you can upsert record in salesforce using web to lead. You need to develop form that can be used instead of web to lead form.
-
Piyush
MemberNovember 18, 2019 at 10:59 am in reply to: How to hide a input box using onfocus functionality.Hi Yogesh,
<input type="text" value="Name:" name="visitors_name" onblur="if(value=='') value = 'Name:'" onfocus="if(value=='Name:') value = ''"/>
-
Piyush
MemberNovember 18, 2019 at 9:34 am in reply to: How to use concatenation for columns of lightning datatable.Hi,
public wrapp(Account acct){ id = acct.Id; name = acct.Name + '-'+acct.Master_Customer_ID__c; mdm = acct.Master_Customer_ID__c; }
concatenateCols() { this.columns = [...this.columns, { label: 'fruit-weight', fieldName: 'fruitWeight' }]; this.data = this.data.map(item => { return { ...item, fruitWeight: [[code]]czoxNTI6XCIke2l0ZW0ubmFtZSA/IGl0ZW0ubmFtZSA6ICYjMDM5OyYjMDM5O30keyhpdGVtLm5hbWUgJmFtcDsmYW1wOyBpdGVtLnd7WyYqJl19ZWlnaHQgPyAmIzAzOTsgLSAmIzAzOTsgOiAmIzAzOTsmIzAzOTspfSR7aXRlbS53ZWlnaHQgPyBpdGVtLndlaWdodCA6ICYjMDM5O3tbJiomXX0mIzAzOTt9XCI7e1smKiZdfQ==[[/code]] }; }); }
I think this will help you.