If this resource is going to be placed on the Component Details view than the ${ComponentID} macro should work. Your ${ApplicationName} macro will likely not though. It should work on the Application Details view, but probably not the Component Details view. I contend that Alex Slv's did exactly as I originally suggested. Nicely done Alex! All the "magic" is happening in Alex's screenshot below..
And it's all tied together with this alert action