Answers.Body: <p>Indeed, different workflow. with pledges, you create "expected" contributions for each time the donor said she'd contribute. You can then alter them via the api (eg with the api explorer)</p>
  
  <p>The entity you want to change is pledgePayment. you can update the contribution_id, the amount and the status and it should then be working as expected</p>
  
  <pre><code>"values":[{
      "id":"1",
      "pledge_id":"1",
      "contribution_id":"10",
      "scheduled_amount":"500.00",
      "actual_amount":"500.00",
      "currency":"USD",
      "scheduled_date":"2009-07-01 00:00:00",
      "reminder_count":"0",
      "status_id":"1"
  },
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-18T18:18:10.937Z
Answers.Text: @Jeff - you marked this answer as accepted - and someone else has a similar need here: http://civicrm.stackexchange.com/questions/3816/connecting-existing-contribution-to-pledge-without-development.  Is it possible that you could post your extension on github?
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-02T20:46:42.247Z
Answers.Text: @Jeff - Please count me among those who would like an extension for this! Are you able to share? If not the complete extension, perhaps explain what you did?
Answers.UserDisplayName: naomisl
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T17:00:26.777Z
Answers.LastActivityDate: 2015-05-06T17:00:26.777Z
Answers.UserDisplayName: Xavier
Body: <p>This Sunday was the first day for our church to receive payments in a financial campaign we are running. Some people have made pledges, and we have used CiviPledge to record those pledges.</p>
  
  <p>I was under the assumption that when we recorded the donations to the same financial type as the pledge that CiviPledge would automatically figure out that that gift should count as a pledge payment.</p>
  
  <p>However, it did not. I have since discovered the "Pledge" tab on an individual contact page which allows me to record a pledge payment, but that adds a completely different workflow to our record keeping.</p>
  
  <p>Therefore, I have two related questions:</p>
  
  <ul>
  <li>Is there some way to connect a contribution to a pledge when the contribution is entered using the standard contribution entry form?</li>
  <li>How can I connect an existing contribution to a pledge after the contribution has been entered? (I am comfortable using the CiviCRM API, but have never programmed for the pledge component before.)</li>
  </ul>
  
  <p>Any help will be appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-08T18:49:32.777Z
Comments.Text: Getting a contribution that needs to be assigned to a pledge seems like a common use case. Did you build an extension for this?
Comments.UserDisplayName: Sonicthoughts
Tags: <contributions><pledges>
Title: Connecting existing contribution to pledge
ThreadText: # Connecting existing contribution to pledge
  
  (Asked by: username_0 on 2015-05-06)
  
  This Sunday was the first day for our church to receive payments in a financial campaign we are running. Some people have made pledges, and we have used CiviPledge to record those pledges.
  
  I was under the assumption that when we recorded the donations to the same financial type as the pledge that CiviPledge would automatically figure out that that gift should count as a pledge payment.
  
  However, it did not. I have since discovered the "Pledge" tab on an individual contact page which allows me to record a pledge payment, but that adds a completely different workflow to our record keeping.
  
  Therefore, I have two related questions:
  
  * Is there some way to connect a contribution to a pledge when the contribution is entered using the standard contribution entry form?
  * How can I connect an existing contribution to a pledge after the contribution has been entered? (I am comfortable using the CiviCRM API, but have never programmed for the pledge component before.)
  
  Any help will be appreciated.
  
  **Tags:** contributions, pledges
  
  > **Comments:**
  > **username_1**: Getting a contribution that needs to be assigned to a pledge seems like a common use case. Did you build an extension for this?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-05-06. Score: 2 | Accepted answer
  
  Indeed, different workflow. with pledges, you create "expected" contributions for each time the donor said she'd contribute. You can then alter them via the api (eg with the api explorer)
  The entity you want to change is pledgePayment. you can update the contribution_id, the amount and the status and it should then be working as expected
  "values":[{
      "id":"1",
      "pledge_id":"1",
      "contribution_id":"10",
      "scheduled_amount":"500.00",
      "actual_amount":"500.00",
      "currency":"USD",
      "scheduled_date":"2009-07-01 00:00:00",
      "reminder_count":"0",
      "status_id":"1"
  },
  
  > **Comments:**
  > **username_3**: @Jeff - you marked this answer as accepted - and someone else has a similar need here: http://civicrm.stackexchange.com/questions/3816/connecting-existing-contribution-to-pledge-without-development.  Is it possible that you could post your extension on github?  
  > **username_4**: @Jeff - Please count me among those who would like an extension for this! Are you able to share? If not the complete extension, perhaps explain what you did?  
  
  ---
  
  