BS-6860
Use same algorithm for link and button, data will be added to first
parent activity or process