Pranay Jaiswal
  • Member for 6 years, 7 months
  • Last seen this week
1 answers
1 votes
66 views
Play .mov video from amazon in lightning
Accepted answer
5 votes

You have put that URL in Content Security Policy settings in Salesforce. CSP setting determines which content from 3rd party sites can be played/viewed in Salesforce. https://help.salesforce.com/...

View answer
1 answers
2 votes
559 views
Data binding - multiple attributes
5 votes

Your syntax is not proper. You forgot ! mark on att2. <c:child attribute1="{!v.att1}" attribute2="{!v.att2} />

View answer
1 answers
3 votes
322 views
Sobject Row does not allow Errors on Cross Object Error Trigger
Accepted answer
5 votes

You can only use addError on variables which are in trigger context. That means you can only addError in variable you get from Trigger.New or Trigger.newMap Here I can see, you are using ...

View answer
1 answers
0 votes
43 views
Sobject does not allow errors
5 votes

Lets dig into this. You have written a trigger on CloudbyzITPM__Task_Resource_Assignment__c and you are adding addError to the records of the same list, then why is it giving you the above-mentioned ...

View answer
2 answers
0 votes
2k views
Create a Salesforce file from an email attachment
Accepted answer
5 votes

Salesforce files have superseded attachments. A single attachment can have only one parent and access to attachments is controlled by the parent record. If we want to attach same file on two different ...

View answer
1 answers
2 votes
10k views
Retrieve/Deploy a custom metadata type's list view?
Accepted answer
5 votes

List view fetching for custom metadata types are bit tricky. If you retrieve a List View on a Custom Setting/Custom Metdata along with the Custom Setting/Metadata object when using Metadata API ...

View answer
1 answers
-4 votes
5k views
Method does not exist or incorrect signature: void executeBatch
Accepted answer
5 votes

There are few things wrong. For a batch, you have to implement Database.Batchable interface. global class s360_batchDocumentEmailWeekly implements Database.Batchable<sObject>{ global String ...

View answer
1 answers
0 votes
231 views
Custom Formula Field that uses a Text Field but needs to be compared to Greater than or less than signs?
Accepted answer
5 votes

So your question implies this, you have 4 conditions if height > 10 then tall if height > 0 but <=10 short if height >10 but <=20 s short (THIS CONFLICTS WITH 1st IF STATEMENT) else NONE I am ...

View answer
1 answers
1 votes
2k views
How can I parse my JSON blob in my Lightning Component
Accepted answer
5 votes

You have to convert the JSON__c field'cs value into Javascript object and then show it. As you are using Lightning Data Services you would have to use a dataChange listener to listen to the record ...

View answer
1 answers
0 votes
48 views
How do I try out my Lightning Component?
Accepted answer
5 votes

You can create a lightning application to host your component and see if it works. You have to go to File -> New -> Lightning Application to create an app. if your component name is ...

View answer
1 answers
0 votes
1k views
Can an Apex Email Handler parse an attached Excel file?
Accepted answer
5 votes

Short Answer: No its not posssible to read Excel in Apex. Long Answer: Excel files(xls,xlsx etc) are not a text based file. They are binary files. Thus unlike CSV(text based) they cant be read line ...

View answer
1 answers
3 votes
2k views
Do we need to provide LIMIT in soql query while using REST API?
Accepted answer
5 votes

The beauty of query call of Rest API is it lets you query more than 50,000 rows which is a standard limit of APEX. The reason being same Query API call is used in Reports and Data export stuff so no ...

View answer
2 answers
3 votes
437 views
How many lines can we write in a visualforce page?
5 votes

Here what I can see is there are so many lines of code present in your Visualforce page in order to handle complex functionality. You can use templating feature of visualforce , where you can add ...

View answer
3 answers
3 votes
3k views
How can I get a pre-release org?
4 votes

If you already had an existing pre-release org its now on SUMMER 18. You can log in and check it. As Spring 18 pre-release program is closed(https://www.salesforce.com/form/signup/prerelease-spring18....

View answer
2 answers
4 votes
319 views
formatGMT YYYY returning next year and yyyy returning this year?
4 votes

YYYY is week based calendar. yyyy is our ordinary calender. This is not SF behavior. but something expected whenever you use yyyy or YYYY as they are derived from java SimpleDateFormat. Even SF ...

View answer
3 answers
1 votes
695 views
Why can Map<Id,List<SObject>> be assigned to Map<Id,List<Account>>?
4 votes

The question answer you linked was for when Key in Map was String, if its id then Even the first one is allowed. Conversion of generic Sobject to the proper object Account acc = new Account(Id='...

View answer
1 answers
1 votes
1k views
fire quick action from lwc
4 votes

QuickAction Api is not available in LWC yet. You have to wrap an aura component around your LWC. Fire an event from LWC, aura component will capture it and then call quick action API. https://...

View answer
1 answers
1 votes
20 views
How do I remove repeating parts?
Accepted answer
4 votes

We usually move the reusable piece of code to a common utility method. You can create a private method that will return the sanitized comment back. private static String getSanitizedComment(String ...

View answer
4 answers
3 votes
3k views
Is there a way to destroy LWC from its js controller?
Accepted answer
4 votes

From the documentation of Component.destroy() If you create a component dynamically in JavaScript and that component isn't added to a facet (v.body or another attribute of type Aura.Component[])...

View answer
1 answers
2 votes
581 views
LWC Wired Apex to Custom Data Type
Accepted answer
4 votes

The issue is in your wrapper class. Each variable in your wrapper should be annotated with AuraEnabled to be displayed back in the UI. public class OpenActivityWrapper{ @AuraEnabled ...

View answer
1 answers
1 votes
58 views
Lightning Web JavaScript Issue
4 votes

abc is an array, not a map. You cannot use get to get value in array of object. You have to use Array.find var staticKeyElement = this.abc.find(ele =&gt; ele.key === 'Static__c'); console.log(...

View answer
1 answers
0 votes
46 views
Initialize fields from an object when creating the object
4 votes

Instead of using new operator you can use newSObject() that will load the record with default values, and then you can change it wrt to your choice. public sObject newSObject(ID recordTypeId, Boolean ...

View answer
1 answers
4 votes
2k views
How to determine Omni-Channel Agent's current capacity in APEX?
Accepted answer
4 votes

As Kris suggested, I have used similar to make a custom omni supervisor component, you can use status of AgentWork and UserServicePresence to find out current capacity of the Agent. ...

View answer
1 answers
1 votes
73 views
Advance for loop Query rows limit?
Accepted answer
4 votes

You cant get more than 50k rows via SOQL. Query and Querymore are present not in apex but in Rest and SOAP API. They give cursor that allows getting more records. Internally, if you use SOQL for List'...

View answer
2 answers
2 votes
809 views
LWC displays data from apex even if access to apex class is blocked
Accepted answer
4 votes

From the documentation of VF security : Permission for a Visualforce page is checked at the top level only. Once users can access a page, they can execute all Apex that’s associated with the ...

View answer
1 answers
0 votes
364 views
Set static variable in Apex based on argument passed from JS Helper
Accepted answer
4 votes

Scope of a Static variable is per transaction. initializeMap is 1 transaction, loadName is another transaction. The values you set in 1st transaction, won't be retrievable by the second ...

View answer
1 answers
1 votes
78 views
Dynamic insert?
Accepted answer
4 votes

You can use Sobject's put method to dynamically provide field names and values Indicador_Clinico__c indic = new Indicador_Clinico__c(); indic.put('MyField__c','JAR');

View answer
1 answers
2 votes
496 views
Unauthorized endpoint when calling Metadata API from Apex in @future
Accepted answer
4 votes

From SF Docs To bypass remote site settings, My Domain must be enabled in your org The reason being, without MyDomain and using instance name we can't guarantee that we would be just calling our ...

View answer
1 answers
0 votes
122 views
How to bypass read timed out error while making callouts?
Accepted answer
4 votes

Governor limits can't be bypassed, if they could be bypassed then it defeats the purpose of having them in the first place. You have to change your architecture, the current one has limits on timeout ...

View answer
2 answers
1 votes
927 views
The 50,000 row query limit is not actually a "per APEX call" as widely believed
4 votes

Its called as boxcarring, Salesforce bundles multiple request in to 1 to save repeated calls to server. You can seee from Debug logs, only one is created. A quick solution is to add a timeout or use ...

View answer
1
3 4
5
6 7
33