-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
4Questions
-
0Replies
How to upoload file (content version) to an opportunity using javascript
Hi,
I have a requirement to upload a local csv file to an opportunity throught javascript code - I read "https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm" post and tried the jquery POST but no success.
var data = new FormData();
data.append('entity_content', JSON.stringify({
contentDocumentId: '06936000002p8gFAAQ',
title: 'sample from js'
}));
data.append('versionData', $inputFileSelector[0].files[0], 'sample csv.csv');
$.ajax({
url: url,
method: "POST",
headers: {
"Content-Type": 'multipart/form-data',
"Authorization": "Bearer " + sessionId
},
data: data,
cache: false,
processData: false
})
Please help me on how to upload local file to opportunity using api in jquery.
Thanks
Vinay
I have a requirement to upload a local csv file to an opportunity throught javascript code - I read "https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm" post and tried the jquery POST but no success.
var data = new FormData();
data.append('entity_content', JSON.stringify({
contentDocumentId: '06936000002p8gFAAQ',
title: 'sample from js'
}));
data.append('versionData', $inputFileSelector[0].files[0], 'sample csv.csv');
$.ajax({
url: url,
method: "POST",
headers: {
"Content-Type": 'multipart/form-data',
"Authorization": "Bearer " + sessionId
},
data: data,
cache: false,
processData: false
})
Please help me on how to upload local file to opportunity using api in jquery.
Thanks
Vinay
-
- vinay maladkar 11
- April 14, 2017
- Like
- 0
- Continue reading or reply
Lightning : How do I set/out focus on UI:InputText
Hi,
I have a requirement to set focus and out focus for an UI:inputIText field on click of a button in lightning component. How I can achieve this?
I tried - component.find('myText').element().blur();
but this does not work.
Thanks in advance,
Vinay
I have a requirement to set focus and out focus for an UI:inputIText field on click of a button in lightning component. How I can achieve this?
I tried - component.find('myText').element().blur();
but this does not work.
Thanks in advance,
Vinay
-
- vinay maladkar 11
- August 30, 2016
- Like
- 0
- Continue reading or reply
SF Lightning - Hitting custom tab to show a visualforce page, causes the url size to grow high and page becomes non-responsive
Hi,
I have a custom tab to show a custom visualforce page. In lightning, the page url grows very high when I navigate to this tab and opportunity tab two to three times. This causes tab to be non-responsive. Looks like its appending the recursive history into the url.
This happends only in lightning experience.
Any clue or workaround would help.
Thanks
Vinay
I have a custom tab to show a custom visualforce page. In lightning, the page url grows very high when I navigate to this tab and opportunity tab two to three times. This causes tab to be non-responsive. Looks like its appending the recursive history into the url.
This happends only in lightning experience.
Any clue or workaround would help.
Thanks
Vinay
-
- vinay maladkar 11
- August 19, 2016
- Like
- 0
- Continue reading or reply
Lightning IE : Custom Tab and buttons stops working after using 2-3 times
Hi,
We have custom tabs and buttons for one of our custom object. When Lightning Experience page loads, initially these tabs and buttons works very well in all browsers. But after navigating 2-3 times these tabs and buttons stops working in IE, at the same time the SF standard tabs and buttons still works.
We noticed this behavior in IE and FF but not in chrome. In chrome all tabs and buttons works always.
Does anyone has this experience.
Please help.
Thanks in Advance,
Vinay
We have custom tabs and buttons for one of our custom object. When Lightning Experience page loads, initially these tabs and buttons works very well in all browsers. But after navigating 2-3 times these tabs and buttons stops working in IE, at the same time the SF standard tabs and buttons still works.
We noticed this behavior in IE and FF but not in chrome. In chrome all tabs and buttons works always.
Does anyone has this experience.
Please help.
Thanks in Advance,
Vinay
-
- vinay maladkar 11
- August 03, 2016
- Like
- 0
- Continue reading or reply