• theD
  • NEWBIE
  • 5 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 10
    Replies
I am looking to implement Apex Sharing  in the Controlled by Parent model on a custom object that only has a lookup (since it is too deep to add another parent/child). Has anyone out there done this?

Thanks
I have requirement where I have to embed a Salesforce report into my site which is running on salesforce platform.

I am trying with the below code, 
<apex:outputLink html-location="0" value="{!sfInstanceURL}/?startURL=/00On0000000JVvp&isdtp=nv&oauth_token={!sfOAuthToken}" rendered="true" target="_blank">SF Report</apex:outputLink>

And the generated URL looks like this,
https://cs30.salesforce.com/?startURL=/00On0000000JVvp&isdtp=nv&oauth_token=00Dn0000000Dccu!AQkAQIazITJ1oIAoQU2UljR5AZHe_auKkNrSkuQwWJqVjPZc2C3lB4JfCLD9jePAYFpBJX8rsNVPElqZm9YHR27U9X_UPzZI

But getting an error message as, "**Unable to Access Page**
The value of the "oauth_token" parameter contains a character that is not allowed or the **value exceeds the maximum allowed length**. Remove the character from the parameter value or reduce the value length and resubmit. If the error still persists, report it to our Customer Support team. Provide the URL of the page you were requesting as well as any other related information."

Am I missing something here??? can someone help me to resolve the issue...
 
Hi,
I'm trying to create a process to get rid of all my workflow rules, but I am struggling with the fact that I need to set an ID in order to update a record type.

I am forced to set the record type ID, and I cannot select the Record Type Name, like I used to do with workflows.

Process Builder - Record Type Update

I am mising something? Is there anyway to set the Record Type based on the name and not on the ID?

Thanks in advance, Laura

I have a home page component that can add notes/tasks to the current object in the detail page. I need find out through the Javascript what the current object is and if the sharing model allows the user to add notes/tasks and whether the object has notes/tasks (custom objs) . Right now this is all Javascript...no APEX and hoping to keep it that way if I can for the moment so if it is just a few calls in JS then good. Otherwise I am ok to do with JS/APEX if need be. 

 

Can anyone point me in the right direction? 

 

p.s. I see the 

SELECT RecordId
     FROM UserRecordAccess

 code but worried about a lot SOQL hits since this component  could get driven by screen refreshes. 

Hi,

 

I am trying to connect SalesForce with IBM Process Server. I am not able to get the absolute path of the Partner or the enterprise or Apex WSDL.

 

Is there any way of getting the absolute path of WSDLs in salesforce.

 

Secondly I dont want to use java for integration. I am trying to use IBM BPEL or mediation (IBM Webservice Utility where we need to pass the absolute path of the WSDL) to get it done. This will minimize and remove dependency over the java code.

 

Please help.

I have an unusual requirement. From within a set of child records (I will use Invoices as an easy example) I need to find whether the current invoice record is larger or smaller than the previous largest invoice as of the date of that line item

 

This needs to show in each record the status as of the date of that record so it's not just a simple rollup of the MAX of all records. It also needs to dynamically update if prior invoices are deleted or updated as well. 

 

Think of this as a cascading value that will possibly be different with each record. I think of it as a "Roll Down" or "Roll Previous"  or a max of prior siblings. 

 

I am looking for a good way to implement this that doesn't max out governor limits. 

 

Any thoughts would be appreciated. 

Hi,

 

I have a custom object , which includes three custom fields (Start date, End Date and Business Unit(Type: Picklist).

The three custom fields should be unique for a record, so the combination of these fields makes my record unique.

 

 

 

Example: start date: 05/20/2011, End Date: 05/27/2011, Business Type: Devices

                  Start date: 05/20/2011, End date:05/27/2011, Business Type: Drugs

 

Also, we must make sure that for new record the start and end dates do not fall within the above mentioned dates.

So the next acceptable record is:

 

Start date: 05/28/2011, end date: 05/31/2011,business type:Devices.

 

Note: I have a validation rule that checks that end date is always after start date.

 

I am having a road block to get this logic right in my trigger . Any help/pseudo code on this is highly appreciated.

 

Thanks,

Sales4ce