-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
16Questions
-
6Replies
How can we call flex card LWC from Normal LWC?
When we activate flex card, it actually converts to LWC.
i have a requirement where i can embed this flex card LWC in the normal LWC.
basically normal LWC is parent and flex card LWC is child.
i have a requirement where i can embed this flex card LWC in the normal LWC.
basically normal LWC is parent and flex card LWC is child.
- VIKASH CHAND KUMAR
- July 06, 2023
- Like
- 0
- Continue reading or reply
Use client certificate jks
I have got jks certificate from client, and want to use to connect cleint server to get files.
any idea how to do that ? any url or any help link will also help. completely blank on this.
any idea how to do that ? any url or any help link will also help. completely blank on this.
- VIKASH CHAND KUMAR
- July 04, 2021
- Like
- 0
- Continue reading or reply
Apex Webservice class which accept Http response and can be exposed outside salesforce
I need to write Apex Webservice which will accept Http response and parse the JSON based on Wrapper , and create records. This webservice will be exposed so that it can be accessed outside. do you have any sample class, please help
- VIKASH CHAND KUMAR
- June 23, 2021
- Like
- 0
- Continue reading or reply
Error: java.lang.Exception: HTTP/1.1 401 Unauthorized
When client tries to send Http Response to Salesforce, below error is being thrown to client Server. any idea ,how can we resolve?
Salesforce is conecting Bank for payments and once payments is successful, Bank is trying to connect salesforce web service to process response and getting below error.
Error : java.lang.Exception: HTTP/1.1 401 Unauthorized
We were unable to successfully post the transaction response to your provided URL. Either the provided URL is not listed as an allowed end point to post response information to, there may be a network issue or your site may be offline
For further information:
Salesforce is conecting Bank for payments and once payments is successful, Bank is trying to connect salesforce web service to process response and getting below error.
Error : java.lang.Exception: HTTP/1.1 401 Unauthorized
We were unable to successfully post the transaction response to your provided URL. Either the provided URL is not listed as an allowed end point to post response information to, there may be a network issue or your site may be offline
For further information:
- VIKASH CHAND KUMAR
- June 23, 2021
- Like
- 0
- Continue reading or reply
- VIKASH CHAND KUMAR
- September 10, 2020
- Like
- 0
- Continue reading or reply
bulk api patch request throwing INVALID_FIELD error from workbench
/services/data/v45.0/sobjects/CustomObject__C/External_Field_ID__c/455488
[{
"Custom_field_1": "1990-01-19",
"Custom_field_2": "ABC"
}]
[ { "message" : "Json Deserialization failed on token 'null' and has left off in the middle of parsing a row. Will go to end of row to begin parsing the next row", "errorCode" : "INVALID_FIELD" } ]
[{
"Custom_field_1": "1990-01-19",
"Custom_field_2": "ABC"
}]
[ { "message" : "Json Deserialization failed on token 'null' and has left off in the middle of parsing a row. Will go to end of row to begin parsing the next row", "errorCode" : "INVALID_FIELD" } ]
- VIKASH CHAND KUMAR
- July 19, 2020
- Like
- 0
- Continue reading or reply
conditional custom button link not working
Hi All, i am trying to write one condition to open Data Import wizard if opportunity is not closed lost. also to throw a message if opportunity is closed lost, but its not working. can you please have a look. also i am using execute on javascript
{! IF(Opportunity.StageName != "Closed Lost", "/lightning/setup/DataManagementDataImporter/home", "XXXXXXXXXXXXXX) }
also i am trying below one
if({!Opportunity.StageName=="Closed Lost"}){
alert("XXXXXXXXXXXXXXXXXX");
}
else{
window.top.location.href =
"/lightning/setup/DataManagementDataImporter/home";
}
its not working .
{! IF(Opportunity.StageName != "Closed Lost", "/lightning/setup/DataManagementDataImporter/home", "XXXXXXXXXXXXXX) }
also i am trying below one
if({!Opportunity.StageName=="Closed Lost"}){
alert("XXXXXXXXXXXXXXXXXX");
}
else{
window.top.location.href =
"/lightning/setup/DataManagementDataImporter/home";
}
its not working .
- VIKASH CHAND KUMAR
- April 26, 2020
- Like
- 0
- Continue reading or reply
conditional custom button link
Hi All, i am trying to write one condition to open Data Import wizard if opportunity is not closed lost. also to throw a message if opportunity is closed lost, but its not working. can you please have a look.
{! IF(Opportunity.StageName != "Closed Lost", "/lightning/setup/DataManagementDataImporter/home", "XXXXXXXXXXXXXX) }
also i am trying below one
if({!Opportunity.StageName=="Closed Lost"}){
alert("Opportunity is Closed Lost, Learner Can not be uploaded");
}
else{
window.top.location.href =
"/lightning/setup/DataManagementDataImporter/home";
}
its not working .
{! IF(Opportunity.StageName != "Closed Lost", "/lightning/setup/DataManagementDataImporter/home", "XXXXXXXXXXXXXX) }
also i am trying below one
if({!Opportunity.StageName=="Closed Lost"}){
alert("Opportunity is Closed Lost, Learner Can not be uploaded");
}
else{
window.top.location.href =
"/lightning/setup/DataManagementDataImporter/home";
}
its not working .
- VIKASH CHAND KUMAR
- April 25, 2020
- Like
- 0
- Continue reading or reply
data import wizard to open for only one custom object
Hi all,
i am trying to write one custom button which should open only one custom object, i want to restrict user to see other standard and custom object. is it possible ? could you please guide here.
i am trying to write one custom button which should open only one custom object, i want to restrict user to see other standard and custom object. is it possible ? could you please guide here.
- VIKASH CHAND KUMAR
- April 25, 2020
- Like
- 0
- Continue reading or reply
Workflow to not fire if one of the field out of 90 is created or edited
Hi , i am trying to write workflow rule to not fire if one of the field out of 90 filed is created or edited.
my rule is
AND(NOT( ISNEW() ), field1 = TRUE, NOT(ISCHANGED(field1 ))) .
I want to include my condition, if one field 'field3' is updated/created this workflow should not fire.
my rule is
AND(NOT( ISNEW() ), field1 = TRUE, NOT(ISCHANGED(field1 ))) .
I want to include my condition, if one field 'field3' is updated/created this workflow should not fire.
- VIKASH CHAND KUMAR
- March 08, 2020
- Like
- 0
- Continue reading or reply
not able to create list of contentdocumentlink for the list of contentversion
i am trying to create list of contentversion for set of Id and blob data, which i am able to create, but now when i am trying to create contentdocumentlink for the list of contentversion, i am not getting any field which i should be relating to my LinkedEntityId.
List<ContentVersion> cvc=new List<ContentVersion>();
List<ContentDocumentLink> cdll = new List<ContentDocumentLink>();
for(Id x : y.keyset()){
ContentVersion cv=new ContentVersion();
cv.Title=XXXXXX;
cv.VersionData= y.get(x);
cv.PathOnClient=XXXXXX;
cvc.add(cv);
}
Database.Insert(cvc);
for(ContentVersion cvv: [Select Id,ContentDocumentId from ContentVersion where ?????? IN : y.keyset() ]){
ContentDocumentLink cdl = new ContentDocumentLink();
cdl.ContentDocumentId = cvv.ContentDocumentId;
cdl.LinkedEntityId = ????????
cdl.ShareType = 'V';
cdll.add(cdl);
System.debug('Hello');
}
insert cdll;
List<ContentVersion> cvc=new List<ContentVersion>();
List<ContentDocumentLink> cdll = new List<ContentDocumentLink>();
for(Id x : y.keyset()){
ContentVersion cv=new ContentVersion();
cv.Title=XXXXXX;
cv.VersionData= y.get(x);
cv.PathOnClient=XXXXXX;
cvc.add(cv);
}
Database.Insert(cvc);
for(ContentVersion cvv: [Select Id,ContentDocumentId from ContentVersion where ?????? IN : y.keyset() ]){
ContentDocumentLink cdl = new ContentDocumentLink();
cdl.ContentDocumentId = cvv.ContentDocumentId;
cdl.LinkedEntityId = ????????
cdl.ShareType = 'V';
cdll.add(cdl);
System.debug('Hello');
}
insert cdll;
- VIKASH CHAND KUMAR
- February 08, 2020
- Like
- 0
- Continue reading or reply
ContentVersion object not available in Profile
I am getting error "Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.: [NetworkId]" while creating ContentVersion. when i am trying to find "ContentVersion" object in Profile, its not there.
- VIKASH CHAND KUMAR
- February 03, 2020
- Like
- 0
- Continue reading or reply
Suspend "Sharing Rule Calculations" using script in Defer sharing calculation
Hi All,
i want to suspend "Sharing Rule Calculations" using script in Defer sharing calculation. Tried a lot to get API name and all, couldn't find. Can anyone please help.
i want to suspend "Sharing Rule Calculations" using script in Defer sharing calculation. Tried a lot to get API name and all, couldn't find. Can anyone please help.
- VIKASH CHAND KUMAR
- October 04, 2019
- Like
- 0
- Continue reading or reply
static variable not able to retain value
public with sharing class A implements B {
private static Real dataParamObj=new Real();
public List<C> method1(Id courseId) {
dataParamObj.a=a;
dataParamObj.b=b;
dataParamObj.c='Course';
public void method2(Id y) {
dataParamObj.d=d;
dataParamObj.e = e;
public List<M> method3(Id courseId) {
dataParamObj.f=f;
}
public List<MN> method4(Id courseId) {
dataParamObj.g=g;
}
public List<PQ> method5(Id courseId) {
dataParamObj.h = h;
}
public XZ returnValues(){
return dataParamObj;
}
}
i have created static variable dataParamObj and all the values a,b,c,d,e,f,g,h assigned to dataParamObj shud be returned by this method returnValues() called in different class. it was working before, but not sure what happened after winter 20 release update, static variable dataParamObj is able to hold only last value assigned 'h'. please help. not sure where is problem, it was working before.
private static Real dataParamObj=new Real();
public List<C> method1(Id courseId) {
dataParamObj.a=a;
dataParamObj.b=b;
dataParamObj.c='Course';
public void method2(Id y) {
dataParamObj.d=d;
dataParamObj.e = e;
public List<M> method3(Id courseId) {
dataParamObj.f=f;
}
public List<MN> method4(Id courseId) {
dataParamObj.g=g;
}
public List<PQ> method5(Id courseId) {
dataParamObj.h = h;
}
public XZ returnValues(){
return dataParamObj;
}
}
i have created static variable dataParamObj and all the values a,b,c,d,e,f,g,h assigned to dataParamObj shud be returned by this method returnValues() called in different class. it was working before, but not sure what happened after winter 20 release update, static variable dataParamObj is able to hold only last value assigned 'h'. please help. not sure where is problem, it was working before.
- VIKASH CHAND KUMAR
- September 12, 2019
- Like
- 0
- Continue reading or reply
custom setting values in lightning component
Hi, i want to print follwing lines in lightning component.
""please email us on email vikuemail.com or call us on 234 567 890""
1. i want email to show in highlighted in email format, so that when i click on email, it should be direct email. and also phone number highlighted in different color.
2. i want to use this in custom settings, so that based on requirement this statement can be changed.
i wrote a list of String returning both these values in apex, which will be returned to JS and then will be used by component.
but confused, how to implemnt this.
Can anyone please help.
""please email us on email vikuemail.com or call us on 234 567 890""
1. i want email to show in highlighted in email format, so that when i click on email, it should be direct email. and also phone number highlighted in different color.
2. i want to use this in custom settings, so that based on requirement this statement can be changed.
i wrote a list of String returning both these values in apex, which will be returned to JS and then will be used by component.
but confused, how to implemnt this.
Can anyone please help.
- VIKASH CHAND KUMAR
- August 21, 2019
- Like
- 0
- Continue reading or reply
Cannot read property 'indexOf' of undefined
I am always getting this error "ContactDetails$controller$locationChange [Cannot read property 'indexOf' of undefined] Failing descriptor: {ContactDetails$controller$locationChange}" Not sure what is wrong, can you please help
My component is
<aura:component controller="ContactController">
<aura:attribute name="contact" type="Contact" default="{'sobjectType': 'Contact'}"/>
<aura:handler event="aura:locationChange" action="{!c.locationChange}"/>
<div class="details">
<h1>{!v.contact.Name}</h1>
<h3>{!v.contact.Account.Name}</h3>
<h3>{!v.contact.Title}</h3>
<p>{!v.contact.Phone}</p>
{!v.contact.MobilePhone}
</div>
</aura:component>
and Controller is
({
locationChange : function(component, event, helper) {
var token=event.getParam("token");
if(token.indexOf('contact/')===0)
{
var contactId=token.substr(token.indexOf('/')+1);
var action=component.get("c.findById");
action.setParams({"contactId":contactId});
}
action.setCallback(this,function(response){
component.set("v.contacttt",response.getReturnValue());
})
$A.enqueueAction(action);
}
})
My component is
<aura:component controller="ContactController">
<aura:attribute name="contact" type="Contact" default="{'sobjectType': 'Contact'}"/>
<aura:handler event="aura:locationChange" action="{!c.locationChange}"/>
<div class="details">
<h1>{!v.contact.Name}</h1>
<h3>{!v.contact.Account.Name}</h3>
<h3>{!v.contact.Title}</h3>
<p>{!v.contact.Phone}</p>
{!v.contact.MobilePhone}
</div>
</aura:component>
and Controller is
({
locationChange : function(component, event, helper) {
var token=event.getParam("token");
if(token.indexOf('contact/')===0)
{
var contactId=token.substr(token.indexOf('/')+1);
var action=component.get("c.findById");
action.setParams({"contactId":contactId});
}
action.setCallback(this,function(response){
component.set("v.contacttt",response.getReturnValue());
})
$A.enqueueAction(action);
}
})
- VIKASH CHAND KUMAR
- March 22, 2019
- Like
- 0
- Continue reading or reply
Use client certificate jks
I have got jks certificate from client, and want to use to connect cleint server to get files.
any idea how to do that ? any url or any help link will also help. completely blank on this.
any idea how to do that ? any url or any help link will also help. completely blank on this.
- VIKASH CHAND KUMAR
- July 04, 2021
- Like
- 0
- Continue reading or reply
data import wizard to open for only one custom object
Hi all,
i am trying to write one custom button which should open only one custom object, i want to restrict user to see other standard and custom object. is it possible ? could you please guide here.
i am trying to write one custom button which should open only one custom object, i want to restrict user to see other standard and custom object. is it possible ? could you please guide here.
- VIKASH CHAND KUMAR
- April 25, 2020
- Like
- 0
- Continue reading or reply
custom setting values in lightning component
Hi, i want to print follwing lines in lightning component.
""please email us on email vikuemail.com or call us on 234 567 890""
1. i want email to show in highlighted in email format, so that when i click on email, it should be direct email. and also phone number highlighted in different color.
2. i want to use this in custom settings, so that based on requirement this statement can be changed.
i wrote a list of String returning both these values in apex, which will be returned to JS and then will be used by component.
but confused, how to implemnt this.
Can anyone please help.
""please email us on email vikuemail.com or call us on 234 567 890""
1. i want email to show in highlighted in email format, so that when i click on email, it should be direct email. and also phone number highlighted in different color.
2. i want to use this in custom settings, so that based on requirement this statement can be changed.
i wrote a list of String returning both these values in apex, which will be returned to JS and then will be used by component.
but confused, how to implemnt this.
Can anyone please help.
- VIKASH CHAND KUMAR
- August 21, 2019
- Like
- 0
- Continue reading or reply
Cannot read property 'indexOf' of undefined
I am always getting this error "ContactDetails$controller$locationChange [Cannot read property 'indexOf' of undefined] Failing descriptor: {ContactDetails$controller$locationChange}" Not sure what is wrong, can you please help
My component is
<aura:component controller="ContactController">
<aura:attribute name="contact" type="Contact" default="{'sobjectType': 'Contact'}"/>
<aura:handler event="aura:locationChange" action="{!c.locationChange}"/>
<div class="details">
<h1>{!v.contact.Name}</h1>
<h3>{!v.contact.Account.Name}</h3>
<h3>{!v.contact.Title}</h3>
<p>{!v.contact.Phone}</p>
{!v.contact.MobilePhone}
</div>
</aura:component>
and Controller is
({
locationChange : function(component, event, helper) {
var token=event.getParam("token");
if(token.indexOf('contact/')===0)
{
var contactId=token.substr(token.indexOf('/')+1);
var action=component.get("c.findById");
action.setParams({"contactId":contactId});
}
action.setCallback(this,function(response){
component.set("v.contacttt",response.getReturnValue());
})
$A.enqueueAction(action);
}
})
My component is
<aura:component controller="ContactController">
<aura:attribute name="contact" type="Contact" default="{'sobjectType': 'Contact'}"/>
<aura:handler event="aura:locationChange" action="{!c.locationChange}"/>
<div class="details">
<h1>{!v.contact.Name}</h1>
<h3>{!v.contact.Account.Name}</h3>
<h3>{!v.contact.Title}</h3>
<p>{!v.contact.Phone}</p>
{!v.contact.MobilePhone}
</div>
</aura:component>
and Controller is
({
locationChange : function(component, event, helper) {
var token=event.getParam("token");
if(token.indexOf('contact/')===0)
{
var contactId=token.substr(token.indexOf('/')+1);
var action=component.get("c.findById");
action.setParams({"contactId":contactId});
}
action.setCallback(this,function(response){
component.set("v.contacttt",response.getReturnValue());
})
$A.enqueueAction(action);
}
})
- VIKASH CHAND KUMAR
- March 22, 2019
- Like
- 0
- Continue reading or reply
Lightning Connect Quickstart
Hello I've installed Lightning Connect Quickstart via trailhead. Step 4 says select the External Orders app. Question - where is External Orders app found? After I find it I need to click Set Customer IDs to assign customer ID numbers to the sample account records in my Developer Edition.
- Troy Turley
- November 17, 2017
- Like
- 0
- Continue reading or reply