• Ashutosh Tripathi 34
  • NEWBIE
  • 25 Points
  • Member since 2017
  • Salesforce Consultant
  • Capgemini

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi all,

I have requirement where i have to get the id of a record and assign it to a variable in my extension on clicking a custom button i added in the detail page of object.

Please let me know how to achieve this. If sample code is available that will be great.

Best Regards,
Mohammad Yaseen
I using zip file to create dataset for Sentiment API.

Curl Request:
curl -X POST -H "Authorization: Bearer ZMHLSSO23YHFKO7VBD4J6BJDT7DFHIEBMDB5RQIPZAXNCITLX5RL3DLHEJCSQWMFOZDHSRMT3MELHCHQUSJQ5SL6I5GVCYWMUGKK4CQ" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "type=text-sentiment" -F "data=@D:\Ashutosh\Einstein\Data.zip" https://api.einstein.ai/v2/language/datasets/upload

Response:
{"id":1095808,"name":"Data","createdAt":"2018-12-26T12:01:37.000+0000","updatedAt":"2018-12-26T12:01:37.000+0000","labelSummary":{"labels":[]},"totalExamples":0,"available":false,"statusMsg":"UPLOADING","type":"text-sentiment","object":"dataset"}

Now I am trying to get the status of dataset

Request:
curl -X GET -H "Authorization: Bearer ZMHLSSO23YHFKO7VBD4J6BJDT7DFHIEBMDB5RQIPZAXNCITLX5RL3DLHEJCSQWMFOZDHSRMT3MELHCHQUSJQ5SL6I5GVCYWMUGKK4CQ" -H "Cache-Control: no-cache" https://api.einstein.ai/v2/language/datasets/1095808

Response:
{"id":1095808,"name":"Data","createdAt":"2018-12-26T12:01:37.000+0000","updatedAt":"2018-12-26T12:01:38.000+0000","labelSummary":{"labels":[]},"totalExamples":0,"totalLabels":0,"available":true,"statusMsg":"FAILED:File parsing failed for dataset Data","type":"text-sentiment","object":"dataset"}

Here is my file record:
Using in a zip folder

Can somebody please let me know what's wrong  here.
 
Greetings,
i embedden a canvas app in a visualforce page. This visualforce page is also on mobile nav (Salesforce1), but the canvas is not scrollable (yes on desktop visualforce classic) and no scrollbars appear.
Is there an easy way to make a canvas scrollable ?
Thank you.
Hi all,

I have requirement where i have to get the id of a record and assign it to a variable in my extension on clicking a custom button i added in the detail page of object.

Please let me know how to achieve this. If sample code is available that will be great.

Best Regards,
Mohammad Yaseen