New answers tagged

0

You can use getContent(). The content of the returned Blob depends on how the page is rendered. If the page is rendered as a PDF file, it returns the PDF document. If the page is not rendered as PDF, it returns HTML. To access the content of the returned HTML as a string, use the toString Blob method. You can use toString and save the HTML string in 1 of ...


0

You should be creating a Lightning Detail page for this object first and then using the List View Component on the page to do what you want. There's a free Salesforce Labs List View Component that should allow you to do most anything you'd want for the list view. What the message about "too many list view components on one page..." is telling you is that if ...


0

I think your file is setup wrong. You don't need quotes around everything. For example please see a CSV of an import to my custom object 'Dan Object' The Name is the standard name field required for new records Number is a number Text is a text or string field Take the CSV in data loader map the columns to the fields and it should work. If you're doing an ...


1

The problem is, that you try to fill a lookup-field with a string value. Instead you need to provide the Salesforce ContactId. I know this sounds disturbing as in Sales Cloud you can enter plain text and are able to select the correct record, however when interacting via API (or in that case AMPscript) you need to supply Salesforce IDs for lookup fields.


1

First of all, for proper debugging, wrap your ampscript in a try/catch SSJS, and let us know what is says: <script runat="server"> Platform.Load("Core","1.1.1"); try{ </script> %%[ YOUR AMPSCRIPT CODE ]%% <script runat="server"> }catch(e){ Write(Stringify(e)); } </script> You can also try to format your date ...


0

Just for reference, the Included By for the custom fields that were automatically added only appeared upon packaging (and if I'm not wrong, during Beta dev it just doesn't appear)


0

Because your field is referenced in Apex the managed package is automatically adding it for you to the package, no need to manually add it. Components Automatically Added No need to worry, you are good to go!


0

Does the custom object belong to the detail side of the master detail relationship? If yes then this object wouldn't be available. This is because detail records use the parent's owner to control sharing, so there isn't an "owner" for these detail records.


0

You can get it from the Tooling API itself. The Tooling API field you want is EntityDefinition.DurableId: SELECT DurableId FROM EntityDefinition WHERE QualifiedApiName = 'Full_Name_of_Field__c'


-1

You can just add id field in your query. example: [SELECT ID, Email from Account] It is a unique record id and can be queried just by calling ID field in your query


0

Just got to know we can query like this. Got the result using this- SELECT DurableId FROM EntityDefinition WHERE QualifiedApiName = 'CustomObject__c'


0

S Kawasaki, You can queried for you custom object using SOQL: List<MyCustomObject__c> customObjs = [SELECT Id, Name, CustomField__c FROM MyCustomObject__c]; Hope this helps!


0

Not sure what you meant by getting Id from object name. Here is small notes on Ids and object API names. You can get object API name by using Id. You can say myId.getSobjectType(). If you want to know all the objects' Ids then use SOQL [SELECT Id FROM ObjectName].


0

yes instead of getting the id of the object and redirecting the page to create a custom field, you can create a field using Tooling api itself. I have written a lightning component to create custom object fields for any object (Whichever is accessible to create custom fields). Let me know if you need the code.


1

you may try to use the following SOQL Query to get the Id: Id myCustomObjectId = [SELECT CustomObjectId FROM CustomObjectUserLicenseMetrics WHERE CustomObjectName ='MyCustomObjectName' limit 1].id; hope it helps


Top 50 recent answers are included