• Amit Jain 109
  • NEWBIE
  • 15 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 4
    Replies
I need to send a Report output to users as a Text Message. I have a developer edition. Can someone please suggest me a solution
I am wondering if there are any native APIs to perform CRUD operations on Accounts, Opportunities (Standard Objects) or we have to always write APEX Classes to expose as webservices.
I have created a REST Webservice
@RestResource(urlMapping='/Account/*')
global with sharing class MyRestResource {
@HttpDelete
global static void doDelete() {
RestRequest req = RestContext.request;
RestResponse res = RestContext.response;
String accountId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1);
Account account = [SELECT Id FROM Account WHERE Id = :accountId];
delete account;
}
@HttpGet
global static Account doGet() {
RestRequest req = RestContext.request;
RestResponse res = RestContext.response;
String accountId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1);
Account result = [SELECT Id, Name, Phone, Website FROM Account WHERE Id = :accountId];
return result;
    }
@HttpPost
global static String doPost(String name,
String phone, String website) {
Account account = new Account();
account.Name = name;
account.phone = phone;
account.website = website;
insert account;
return account.Id;
}
}

Now from Postman when I try to invoke the same using the below
https://na30.salesforce.com/services/data/v31.0/query/Account/0013600000OrUqm
I get the below error 
[{"errorCode":"NOT_FOUND","message":"The requested resource does not exist"}]

Can someone please help me to understand if there is any issue with the URL
I have created a REST Webservice
@RestResource(urlMapping='/Account/*')
global with sharing class MyRestResource {
@HttpDelete
global static void doDelete() {
RestRequest req = RestContext.request;
RestResponse res = RestContext.response;
String accountId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1);
Account account = [SELECT Id FROM Account WHERE Id = :accountId];
delete account;
}
@HttpGet
global static Account doGet() {
RestRequest req = RestContext.request;
RestResponse res = RestContext.response;
String accountId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1);
Account result = [SELECT Id, Name, Phone, Website FROM Account WHERE Id = :accountId];
return result;
    }
@HttpPost
global static String doPost(String name,
String phone, String website) {
Account account = new Account();
account.Name = name;
account.phone = phone;
account.website = website;
insert account;
return account.Id;
}
}

Now from Postman when I try to invoke the same using the below
https://na30.salesforce.com/services/data/v31.0/query/Account/0013600000OrUqm
I get the below error 
[{"errorCode":"NOT_FOUND","message":"The requested resource does not exist"}]

Can someone please help me to understand if there is any issue with the URL
Hi All,

I am new to IBM Castiron tool.Now I have created an orchestration to transfer files from 'Notes and Attachment' to FTP location with 'Schedule Job' as the first activity.It is working fine,but the only problem we are facing is,we have scheduled the job to run every 'one hour' at run time and it is not working.Every time we need to start the orchestration manually to transfer files.But as per our requirement the orchestration should be started for every 'one hour' automatically.

How can I achieve this?Do I need to add any other activities to schedule it to run at specific time?

Thanks,
Lavanya

 

 Hi,

 

Can one please explain me how to integrate salesforce with Oracle ERP using Cast iron?