• IP
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies

I'm working on "salesforce to Salesforce".

 

I've subscribed for opportunity from other sandbox without auto accept, i.e maual sharing.

 

So the Oppty's shared by that sandbox is available under  the "Opportunities from  connections" list.

 

But there is only "Accept " link is available. is it possible to keep a " Reject" link also. If so Please let me know..

 

If not please tell me, If we dont accept it, will the opportunity be available in the list forever?

  • March 30, 2012
  • Like
  • 0

I've two salesforce accounts(i.e say A & B), with two different email id's. When i send Connection invite from A to B, B is receiving the Email, But when i send it from B, A is not receiving any invites. Note: B has not accepted the invite sent by  A.

 

All the settings remain same in both the accounts, when i checked.

 

I've tested the deliverability also. A is getting 52 test emails, but B is getting 51 test emails.

 

Please suggest me the way to proceed or please let me know in case any other specific settings need to be checked..

  • March 30, 2012
  • Like
  • 0

I am working on "salesforce to salesforce". I am trying to write a trigger to automate the sharing.

My Scenario is: When i share an opportunity from my sandbox, it has to be shared to the other sandbox and also it has to be mapped to the same account. I know that it can be done using "ParentRecordId" parameter. But This is possible only if the respective account is already shared to the target sandbox. When the respective account is not shared, I want it to share the account first, and then the opportunity should be shared  by mapping to the account. So what i did is i've wrote two triggers on Opportunity object, one is "before insert" and the other is "After insert", as pasted below.

 

trigger sharelookupparent on Opportunity(before insert) {

    PartnerNetworkRecordConnection newrecord = new PartnerNetworkRecordConnection();
    newrecord.ConnectionId = '04P9000000008mXEAQ';
    newrecord.LocalRecordId = trigger.new[0].AccountId;  
    insert newrecord;
    
 }

 

The above trigger will create the account first.

 

The below trigger has to create the oppty and set the parent as the recently created acoount.

 

trigger sharelookup on Opportunity(after insert) {

     
     PartnerNetworkRecordConnection newrecord = new PartnerNetworkRecordConnection();
     newrecord.ConnectionId = '04P9000000008mXEAQ';
    newrecord.LocalRecordId = trigger.new[0].Id;  
    newrecord.ParentRecordId = trigger.new[0].accountid;
    insert newrecord;
    
 }

 

 

When i use these triggers it creates both the account and Opty. but the relationship between them is not established. I think this is because the Database Commit for both the trigger is happening together.

 

can someone please give me a solution for this.??

 

are there any way to make the Database Commit separately.??

 

Or please suggest someother way to achieve this?

  • March 28, 2012
  • Like
  • 0

Hi, I'm trying to assign a result of a query to a variable. but i cannot do like that. following is my code.

 

Public decimal Revenue=[select sum(amount) from opportunity];

 

it throws an error as "Illegal assignment from LIST<AggregateResult> to Decimal "..

 

I've also tried with double instead of decimal. it doesn't work.

 

Please give me a solution for my scenario.

  • June 28, 2011
  • Like
  • 0

I've two salesforce accounts(i.e say A & B), with two different email id's. When i send Connection invite from A to B, B is receiving the Email, But when i send it from B, A is not receiving any invites. Note: B has not accepted the invite sent by  A.

 

All the settings remain same in both the accounts, when i checked.

 

I've tested the deliverability also. A is getting 52 test emails, but B is getting 51 test emails.

 

Please suggest me the way to proceed or please let me know in case any other specific settings need to be checked..

  • March 30, 2012
  • Like
  • 0

I have a Sites page that dynamically generates a PDF from a custom CMS. As part of that page, I would like to dynamically include certain images throughout, accessed from Static Resources, in sections of HTML generated by the Apex Controller through the use of <apex:outputText value="{!someGetter}" escape="false" />.

 

If the page is not set to renderAs="pdf", I can access Static Resource images in the return value of the Apex method like this:

 

return '<img src="resource/ResourceName">';

 

However, if I set renderAs="pdf" so that the page renders as PDF, the images show up broken. I've tried a few different ways of accessing the Static Resource, including the full URL, as well as linking to images off-site, like the Google Logo. I've even tried embedding the image into the text, using Base64. It seems like the only way to include an image in a PDF is to have it directly in the VisualForce page, which is inconsistent with the rendering of a regular VF page. Is this a bug, or is there some way to accomplish what I'm trying to do here?

 

Thanks,

Tom

It is image (<apex:image> or <img>) in Visualforce page. When I tried render it as pdf, image is corrupted (image doesn't load...). It's bug??

 

How to insert external image in VFP that render as pdf??