Aditya
IndividualForum Replies Created
-
Aditya
MemberAugust 30, 2020 at 6:32 am in reply to: How to gets len characters from the middle of a String in Apex?public with sharing class StringToDateConversion { public static Date ParsedDate (String DateString) { String values; String month; String year; String day; for(integer i = 0; i < DateString.length(); i++) { if(i<4) { year = DateString.substring(0,4); } if(i>=4 && i<=5) { month = DateString.substring(4,6); } if(i>=6 && i<=7) { day = DateString.substring(6,8); } } Date mydate = Date.newInstance(integer.valueOf(year),integer.valueOf(month),integer.valueOf(day)); return mydate; }}
-
Aditya
MemberAugust 30, 2020 at 6:27 am in reply to: Whats is the entry sources in Journey Builder?The Audience Studio entry source in Journey Builder lets you choose an audience from your Audience Studio account, then admit contacts from that audience into a journey in a batch. Configure the filter to control which contacts enter, or admit all contacts in the audience.
-
Aditya
MemberAugust 30, 2020 at 6:17 am in reply to: How to show field error in JS Controller in Salesforce?<div>
- *errorHandlingController.js*/
- {
- doAction : function(component) {
- var inputCmp = component.find("inputCmp");
- var value = inputCmp.get("v.value");
- // Is input numeric?
- if (isNaN(value)) {
- // Set error
- inputCmp.set("v.errors", [{message:"Input not a number: " + value}]);
- } else {
- // Clear error
- inputCmp.set("v.errors", null);
- }
- }
- }
<button data-clipboard-text="/*errorHandlingController.js*/ { doAction : function(component) { var inputCmp = component.find("inputCmp"); var value = inputCmp.get("v.value"); // Is input numeric? if (isNaN(value)) { // Set error inputCmp.set("v.errors", [{message:"Input not a number: " + value}]); } else { // Clear error inputCmp.set("v.errors", null); } } } "></button>
When you enter a value and click Submit, <samp>doAction</samp> in the contro</div>
-
Aditya
MemberAugust 22, 2020 at 10:07 am in reply to: where we can use vlookup function in salesforce?VLOOKUP lets you find data on a custom object in a formula. It takes three arguments: The first is which field from the custom object to return, the second is which field on the custom object to search by, and the third is the search key.
-
Aditya
MemberAugust 22, 2020 at 10:06 am in reply to: How to fetch OpportunityLineItem from Opportunity in Salesforce?when we query from parent -> child (i.e. from Opportunity to OpportunityLineItem), we don't store field information from the OpportunityLineItem on the Opportunity object. They are stored on the OpportunityLineItem object, and because an Opportunity can have more than one line item, they are stored in a List.
-
Aditya
MemberAugust 22, 2020 at 9:54 am in reply to: How to enable “floating report header” in Salesforce?Represents an opportunity line item, which is a member of the list of Product2 products associated with an Opportunity.
-
Represents an opportunity line item, which is a member of the list of Product2 products associated with an Opportunity.
-
Aditya
MemberAugust 22, 2020 at 9:36 am in reply to: What is benefit of PartnerPortalCommunity in Salesforce?A community allows your partner users to log in to Salesforce through a separate website and access data you've made available only to them. In a partner community, you can: Extend Salesforce to securely expose CRM data with partners. Recruit, onboard, and educate partners (training and certifications).
-
Aditya
MemberAugust 19, 2020 at 8:51 pm in reply to: Is there any tool for Salesforce Marketing Cloud to migrate data into BU?Reactor is not just a 1.0 to 2.0 Salesforce Marketing Cloud account migration tool, or even a business unit-to-business unit migration tool – though it is all of these things. ... Or, conversely, it can consolidate a number of Enterprise 2.0 accounts into a single Advanced account.
-
Aditya
MemberAugust 19, 2020 at 8:49 pm in reply to: How to limit API calls when using the Developer Console in salesforce?You can reduce your API usage by allowing your developer console session to "idle". Once idle, you'll only incur one API call per incident (such as saving a class, running a test). While not idle, the current implementation polls the server once every 6 seconds, or 10 API calls per minute while doing absolutely nothing.
Also, using the Force.com IDE will drastically reduce your API calls, because you won't suffer from the "monitoring" API calls. Believe it, it makes a big difference. -
deaStandardController objects offer Ideas-specific functionality in addition to what is provided by the StandardController .
-
Aditya
MemberAugust 18, 2020 at 7:28 pm in reply to: How to get client ID in Sharepoint app while integrating with salesforce?Salesforce SharePoint Integration Using Microsoft Azure Service. The best cloud app platform Azure, and leveraging it to interact with SharePoint. If you'd like to use permission sets for managing user permissions, then go to In AppID you need to fill in the client ID that you generated when you configured SharePoint.
-
We can use the JSONParser class methods to parse JSON-encoded content. The methods of JSONParser class enable to parse a JSON-formatted response that's returned from a call to an external service, such as a web service callout
-
Aditya
MemberAugust 18, 2020 at 7:26 pm in reply to: Can we access another content block in template using Salesforce MC AMPscript?`%%[
/* 101 */ Var @memid, @fname, @lname, @prefname, @address, @zip, @mempref, @plat
Set @memid = MemberID
Set @fname = FirstName
Set @lname = LastName
Set @prefname = PrefName
Set @address = Address
Set @zip = Zip
Set @mempref = MemPref
Set @plat = Plat
/* 101 */
]%%%%= v(@fname) =%%, below are your account details
First Name:%%= v(@fname) =%%Last Name:%%= v(@lname) =%%
Preferred Name:%%= v(@prefname) =%% Address Address:%%= v(@address) =%%
Zip:%%= v(@zip) =%% Member Preferences Shopping Preference:%%= v(@mempref) =%%
Platinum Member:%%= v(@plat) =%%` -
Apex cover the syntax of Java so it is similar to java
-
Aditya
MemberAugust 16, 2020 at 7:16 pm in reply to: How to find the distance between two locations in Salesforce?Hi,
We can find the distance between to location like distance shipping address and customer.
<pre id="ext-gen39">DISTANCE( GEOLOCATION( BillingLatitude , BillingLongitude ), GEOLOCATION( Branch_Assigned__r.GeoLocation__Latitude__s , Branch_Assigned__r.GeoLocation__Longitude__s ) , 'mi') -
Aditya
MemberAugust 16, 2020 at 7:07 pm in reply to: Can we access one JavaScript helper method on another helper method?helper function can be called from any JavaScript code in a component's bundle. To call another function in the same helper, use the syntax: These are standard parameters and you don't have to access them in the function
-
Aditya
MemberAugust 16, 2020 at 6:36 pm in reply to: In Salesforce Marketing Cloud, how to verify sender profile?Use the specified information - Enter the information manually in the From name and From email fields. The status automatically changes to verified when a From address matches the accounts SAP domain. To start the domain verification process, select Verify.
-
Aditya
MemberAugust 12, 2020 at 2:58 pm in reply to: What are the steps to be followed for SOAP Integration in Salesforce?Use of the SOAP API in Salesforce:
create a WSDL file in org
Install SoapUI for creating Projects from WSDL file
Login Trailhead playground in SOAP API
Insert Account by SOAP API -
Aditya
MemberAugust 12, 2020 at 2:53 pm in reply to: What are the steps to expose SOAP services in Salesforce?<div>Expose a Class as a SOAP Service
Making your Apex class available as a SOAP web service is as easy as with REST. Define your class as global. Add the webservice keyword and the static definition modifier to each method you want to expose. The webservice keyword provides global access to the method it is added to.
</div> -
Aditya
MemberAugust 12, 2020 at 2:52 pm in reply to: What are the steps to be followed for SOAP Integration in Salesforce?<div aria-level="3" role="heading">Use SOAP API
<div>- Generate a WSDL file for your org.
- Use SoapUI to create a SOAP project from the WSDL file.
- Log in to your Trailhead Playground using SOAP API.
- Create an account using SOAP API.
</div></div>
-
Aditya
MemberAugust 12, 2020 at 2:51 pm in reply to: What are the Business Unit Filters in Salesforce Marketing Cloud?A filter, defined by the admin for each business unit, controls access to the subscribers for child accounts. The filter selects subscribers for a business unit based on values in the subscriber attributes. Note In an Enterprise 2.0 account, you can create subscriber attributes only in the parent account.
-
Aditya
MemberAugust 10, 2020 at 8:09 pm in reply to: How Can we migrate Code from one org to another org in Salesforce?we can migrate Code from one org to another org in Salesforce by using ANT Migration tool
-
Aditya
MemberAugust 10, 2020 at 8:07 pm in reply to: Is it possible to create the Master – Detail Relationship field for the child obYou can't create a master-detail relationship if the custom object already contains data. You can, however, create the relationship as a lookup and then convert it to master-detail if the lookup field in all records contains a value.
-
Aditya
MemberAugust 10, 2020 at 8:06 pm in reply to: What will happen if we undelete junction object and normal object from recycle bJunction object records are deleted when either associated master record is deleted and placed in the Recycle Bin. If both associated master records are deleted, the junction object record is deleted permanently and can't be restored.