• Amy Herz
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
I have a use case to create a corresponding Contact every time a User is created. I wanted to use the standard ContactId field on User with a flow so that after the Contact record is created, update ContactId lookup on User, however this does not seem possible?

When I attempt this in execute anonymous, it gives the error "System.DmlException: Update failed. First exception on row 0 with id <id>; first error: UNKNOWN_EXCEPTION, You can't create a contact for this user because the org doesn't have the necessary permissions. Contact Salesforce Customer Support for help.: []"

Does anyone know what the necessary permissions are to write to this field? I can't seem to find any answers yet, probably will contact support after the weekend as well.
Hi,
I have a url which refers to a .csv file. That means if you put the url into your browser, you will download a .csv file.
But how can I use http callout to directly get the content of the .csv file?
I have tried httpresponse, but it does not work. I think it is because httpresponse can only parse Json or xml.
Thanks!
 

In my org, I am using OAuth with Connected Apps and I have developed an Apex RestResource with a HttpGet method. Everything is working great on a dev org, however on a production org, I am getting an error, "We are down for maintenance. Sorry for the inconvenience. We'll be back shortly."

 

When using the Workbench, I can successfully call my RestResource. So I suspect I'm missing something really simple.

 

Any help would be really appreciated.

 

Here is the output from my curl command:

 

curl -k -v -X GET https://jasminepm-8890.cloudforce.com/services/data/v28.0/ -H "Authorization: OAuth MYTOKEN" -H "X-PrettyPrint:1" -H "Content-Type: application/json; charset=UTF-8" -H "Accept: application/json" -d "client_id=CLIENTID" -d "client_secret=CLIENTSECRET"
* About to connect() to jasminepm-8890.cloudforce.com port 443 (#0)
* Trying 96.43.146.90...
* connected
* Connected to jasminepm-8890.cloudforce.com (96.43.146.90) port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using RC4-MD5
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Salesforce.com Inc; OU=Applications; CN=*.na15.force.com
* start date: 2012-10-18 02:42:03 GMT
* expire date: 2015-10-18 02:42:03 GMT
* subjectAltName: jasminepm-8890.cloudforce.com matched
* issuer: O=Cybertrust Inc; CN=Cybertrust SureServer Standard Validation CA
* SSL certificate verify ok.
> GET /services/data/v28.0/ HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
> Host: jasminepm-8890.cloudforce.com
> Authorization: OAuth MYTOKEN
> X-PrettyPrint:1
> Content-Type: application/json; charset=UTF-8
> Accept: application/json
> Content-Length: 129
>
* upload completely sent off: 129 out of 129 bytes
< HTTP/1.1 411 Length Required
< Server: scl
< Date: Fri, 09 Aug 2013 14:16:07 GMT
< Content-Type: text/html
< Content-Length: 1884
< X-Cnection: close
<
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<center>
<table bgcolor="white" style="align: center;">
<tbody>
<tr><td><br><br></td></tr>
<tr>

<td>
<table bgcolor="white" cellpadding="0" cellspacing="0" style="border:1px solid #ccc;" width="758">
<tbody>
<tr><td><br></td></tr>
<tr>
<td>
<div style="background-color: white; border: 1px solid #ccc; padding: 0px; margin-top: 10px; margin-bottom: 0px; margin-left: 10px; margin-right: 10px;">
<table bgcolor="white" cellpadding="0" cellspacing="0" width="758">
<tbody>

<tr>
<td><span style="font-family: Verdana; font-size: medium; font-weight: bold;">We are down for maintenance.</span><br><br>Sorry for the inconvenience. We'll be back shortly.</td>
</tr>
</tbody>
</table>
</div>

</td>
</tr>
<tr>
<td>
<span>
<table border="0" cellpadding="0" cellspacing="0" style="text-align: right;" width="100%">
<tbody>
<tr>
<td>

<span>
<span style="font-family: Verdana; font-size: smaller">Powered by <a href="http://force.com">force.com</a></span>
</span>
</td>
</tr>
</tbody>
</table>

</span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr><td><br></td></tr>
<tr><td></td></tr>

<tr><td><br></td></tr>
</tbody>
</table>
</center>
<!-- Served by force.com -->
</body>
</html>
<!-- Generated Fri, 09 Aug 2013 14:16:07 GMT (scl) -->
* Connection #0 to host jasminepm-8890.cloudforce.com left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):

Hello,

 

I am sending alerts to users when a record has been modified. I want an email to contain previous values of the changed fields so I am using the PRIORVALUE to update the fields. PRIORVALUE is working for normal fields but for lookup and picklist it seems like it is giving the values number and displays them as numbers instead of the value itself. Does anyone know how to show previous values of a lookup or picklist in an email/alert?

 

Appreciate any help.