Skip to main content

#Nonprofit Salesforce Developer0 discussing

Does anyone know the full parameters and format for using Callable API to run specific customizable rollups?  I want to run just the recurring donation rollups.

 

I have this code but it throws "Error parsing List<CRLP_Rollup> JSON parameter: RollupDefinitions" when executing anonymous.  I see that CRLP_Rollup is a wrapper class -- what do I need to populate in the wrapper records?  #Nonprofit Salesforce Developer

Callable npspApi = (System.Callable)Type.forName('npsp', 'Callable_API').newInstance();

Map<String, Object> h00 = new Map<String, Object>{

'parentId' => '',

'rollupType' => 'RecurringDonations',

'rollupDefs' => '',

'rollupData' => '',

'rollupCommitToDb' => 'true'

};

Id jobId = (Id)npspApi.call('crlp.executerollups', h00);

 

@Salesforce.org MVPs

3 answers
  1. Jul 18, 2022, 9:26 PM

    I have already scoured the classes and there is no good explanation on the parameters format.

0/9000

Question about using Apsona's batch entry tool for Opportunities with multiple Payments:

 

Once one Payment for the Opportunity is received, the Opportunity is marked as Received. This results in those gifts not showing up in the pending gifts popup that shows unpaid Payments, so we are not notified that there are outstanding Payments on the account. I tried changing the Opportunity stage to Pledged and Projected, and the pending gifts popup appeared, but it included all Payments on that Opportunity, even ones already received and marked "paid". 

 

After committing the batch, the Opp stage reverted to Received, so next time we receive a gift for this pledge, the pending gifts popup will not appear.

 

I'm wondering if anyone else has run into this or has any ideas about a possible solution? Thanks for your help!

1 comment
  1. Feb 15, 2020, 4:15 PM

    @Kate McHugh​  The batch tool does not automatically change the Opportunity Stage on commit. So this could be caused by a trigger or flow in your org. Looping in #System Administrators​  and #Nonprofit Salesforce Developer​  so that they can chime in.

0/9000

Please find the sample error we see in our API Logs, we see HTTP 503 error related to many APIs from the last week. I can share more errors if required, please let us know i you need any more information?

 

caught error: ERROR_HTTP_503; <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Unable to Process Request</title> <link href="/dCSS/Theme2/default/maintenance.css" type="text/css" rel="stylesheet" > </head> <body> <div id="red"> <div id="box"> <h1>Unable to Process Request</h1> <h2>We apologize for the inconvenience</h2> <br><br> The salesforce.com servers are temporarily unable to respond to your request. We apologize for the inconvenience.<br> Thank you for your patience, and please try again in a few moments. <br><br> Visit <a href=http://trust.salesforce.com>http://trust.salesforce.com</a> for current system status and availability. <br><br> <form><p class="input"><a href="javascript:history.back()" class="back">back</a><span>&nbsp;</span></form> </div> </div> <!-- Handled by CSP --> </body> </html>

3 answers
  1. Jun 25, 2019, 7:10 PM

    I've seen it when you supply the wrong session id or Bearer token for a REST API call. It would probably help to know what you were calling and how. There's not a lot to glean from what's provided, IMO.

0/9000

We are using the PHP Toolkit, and when I try to query for the Opportunity Id from Payment object, I only get back the Payment Id and not Opportunity Id or any of my custom field IDs. Any ideas what we're doing wrong?

$query = "SELECT Id, npe01__Opportunity__c, Stripe_Charge_Id__c FROM npe01__OppPayment__c WHERE Stripe_Charge_Id__c = '$chargeId'";

$response = $this->sfConnection->query($query);

foreach ($response->records as $record) {

echo(print_r($record, true));

}

 

This is the output we get:

 

stdClass Object\n(\n  [Id] => a017A000003EiSWQA0\n)\n

2 answers
0/9000

I have two custom object's that both have links to the standardAccount Object:

- Medication Forms (Each record is a form i.e. medication review form)

- Medication (Each record is a individual medication for the account)

I have a custom button on the Medication Form record that generates a pdf, i have got this to work perfectly however i am having an issue with the showing the Medication as a related list on the form. I have managed to put the related list on the form however it isn't formated in the correct way and doesn't show all the fields required.

My code is so far as follows (i have left the top part of the code out as it isn't relevant and is just text, i have also attempted a few different ways using apex:repeat however i'm not sure i'm getting it quite right):

<apex:page standardController="Medication_Form__c" showHeader="false" sidebar="false" renderAs="pdf">

<apex:relatedList subject="{!Medication_Form__c.Account__c}" list="Medication__r"/>

<apex:repeat var="med" value="{!Medication_Form__c.Account__r}">

<tr>

<td>{!

med.Name

}</td>

</tr>

</apex:repeat>

</apex:page>

2 answers
0/9000

Hi everyone,

I recently used the Authentication Settings for External Systems on my scratch org. That will be used in my application. I did this so that I can pull some objects data from my production org. The issue with this is that SFDX does not pull the metadata thats in the authentication settings. It simply ignores it which means I have to do it manually every time someone installs my app.

Does anyone know if I can do this using post install script? Or if there is a better approach?

2 answers
0/9000
I am trying to update 2 fields only on fewer than 400 contact records. I have done larger updates than this with no issue, but now, today, I am not able to commit these updates and every single record is rejected because of the CPU time limit. Is there a way to change the batch size (if that will help) or is there something else I could be doing (outside of the developer console) that will allow me to finish the updates?
6 answers
  1. Jun 24, 2019, 8:13 PM

    @Ashlynn Sylvain​ we have been investigating an uptick of CPU Timeout errors over the past few weeks. @Jess Lopez​ has noticed that automated processes like Process Builder have been taking up a bit more of your daily limit resources than normal, which may be the culprit. If you can, try disabling those that are touching the object you are updating, and see if that helps.

0/9000
The "edit campaign member" field on the Campaign Member object is a formula field: HYPERLINK("/" + Id, "Edit Campaign Member", "_self") . I want this field to open a pop-up window to edit a campaign member instead of it navigating to a web page. Any suggestions on how I can do this?
7 answers
  1. Jun 17, 2019, 4:55 PM

    Yeah I tried the _blank, but ultimately we'd rather have it open up in the same tab instead of a new one. Thanks for sharing that help article and about the browser config. Sounds like this actually might not be possible then. I appreciate the feedback.

0/9000

We hope to deploy V4S over the summer for our 400+ volunteers. My plan is to embed the VolunteerSignupFS (sign up form) and PersonalSiteContactLookup on our website using the iframes described in the manual. This part works OK, new volunteers can sign up and existing ones can access the personal site.

When the volunteer is validated, we will send an email with a link to the Personal Site (using Contact ID and email address in the URL). My problem is all the dates are US format, and I cannot determine how to use the DateFormat parameter so that the Personal site starts and stays in the date format I require. The email uses a link

http://_mydomain_.force.com/GW_Volunteers__PersonalSiteContactInfo?DateFormat=EEEE%20dd/MM/YYYY&contactId=

..... and this does change the Volunteer Shifts and Volunteer History to dd/MM/YYYY format. However when I click on the Volunteer Jobs, the dates resort to mm/dd/yyyy format, and so does the PersonalSiteContactInfo when I return to that page.

Should I continue to use the

force.com

URL, or embed the Personal Site iframe in our website somewhere?

Also, when I created a shift for 14th June at 6pm (British Summer Time which is GMT+1), the emails I receive say it starts at 5pm.

6 answers
0/9000
3 answers
  1. Jun 3, 2019, 4:07 PM

    @Craig Nason​ have you followed all the guide steps for granting access and permission to the Guest Site User?

     

    Another option would be to reach out to Wordpress. Not related directly to V4S, but I know that Wordpress can sometimes strip out any third-party code so the site itself could be affecting the page and what is displayed.

    Does anyone in the #Nonprofit Salesforce Developer​ topic have any other advice?

0/9000