You are able to add a column to your Batch, Transactions, and Batch Detail tables in Rock that have links directly to the My Well Admin Portal. This allows admins to more easily move between Rock and My Well.
https://YOUR_SHORT_NAME.mywell.org/adminMyWellPlatformPortalURL . Make sure not to change it.Navigate to Finance → Batch. We will add a column to this table.
Navigate to the block settings → custom grid options → custom columns.
Add a new column.
Name (Header Text) it My Well Portal.
Lava Template:
{% assign foreignKey = Row.ForeignKey | Split:'#' %}
{% assign size = foreignKey | Size %}
{% if size == 2 %}
<a class='btn btn-default btn-xs my-well-button' target='_blank' href="{{ 'Global' | Attribute:'MyWellPlatformPortalURL' }}/statements/payouts/{{foreignKey[1]}}">View</a>
{% endif %}
Adjust the Column Position and the offset depending where you want the new column to show in the table.
Make sure to click Save at the bottom.

You will see the buttons show up.
When you click it, you will be navigated to the My Well Admin Portal to see the specific payout.

With the update to Obsidian a the buttons may default to the table’s default behavior and open the batch detail instead of following the link, if that is the case add the following:
Open the block settings → advanced settings and paste this code into the ‘Post-HTML’ box.
<script>
const getButtons = (event) => {
console.log('Page, including all resources (images, etc.), is fully loaded');
// Your JavaScript code here
const buttons = document.querySelectorAll('.my-well-button');
console.log(buttons);
buttons.forEach(button => {
button.addEventListener("click", event => {
event.stopPropagation();
});
// console.log(button);
});
};
setTimeout(getButtons,1000);
</script>
The page may need to be restarted for the script to run.

Navigate to Finance → Transaction page. We will add a column to this table.
Navigate to the block settings → custom grid options → custom columns
Add a new column.
Name (Header Text) it My Well Portal.
Lava Template:
{% assign foreignKey = Row.ForeignKey | Split:'_' %}
{% assign myWellKey = foreignKey | First %}
{% if myWellKey == 'mywell' %}
<a class="btn btn-default btn-xs" target="_blank" href='{{ 'Global' | Attribute:'MyWellPlatformPortalURL' }}/gifts/{{foreignKey[1]}}'>Transaction</a>
{% financialbatch id:'{{Row.BatchId}}' %}
{% assign foreignKey = financialbatch.ForeignKey | Split:'#' %}
{% assign foreignKeySize = foreignKey | Size %}
{% if foreignKeySize == 2 %}
<a class='btn btn-default btn-xs' target='_blank' href='{{ 'Global' | Attribute:'MyWellPlatformPortalURL' }}/statements/payouts/{{foreignKey[1]}}'>Payout</a>
{% endif %}
{% endfinancialbatch %}
{% endif %}
Adjust the Column Position and the offset depending where you want the new column to show in the table.
Make sure to click Save at the bottom.
