# Invoke method

**URL:** <https://forum.uipath.com/t/invoke-method/6762>\
**Category:** Help\
**Tags:** system, activities\
**Created:** [June 23, 2017, 10:47am UTC](https://forum.uipath.com/t/invoke-method/6762 "2017-06-23T10:47:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Divyashreem](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/divyashreem/32/464042_2.png) [@Divyashreem](https://forum.uipath.com/u/Divyashreem)\
**Post date:** [June 23, 2017, 10:47am UTC](https://forum.uipath.com/t/invoke-method/6762/1 "2017-06-23T10:47:27Z")

</div>

i am trying to use invoke method.. since am new to ui Path i have few questions related to Invoke method..

1. In invoke method activity we have method name, TargetType, TargetObject.

but here where we are referring the method. where is the definition for method here.?

can we write method in .net and invoke same method from UiPath.??

or we can invoke the method which are already available in ui path library..?

---

<div class="post-metadata">

**Author:** ![ddrdushy1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ddrdushy1/32/161002_2.png) [@ddrdushy1](https://forum.uipath.com/u/ddrdushy1)\
**Post date:** [June 23, 2017, 12:52pm UTC](https://forum.uipath.com/t/invoke-method/6762/2 "2017-06-23T12:52:24Z")

</div>

hi,  
we can refer the methods which is already available with the .NET library. we can create custom packages to run our codes. check with `custom activities` tutorial in uiPath docs. after creating the custom activity we can refer the functions.

---

<div class="post-metadata">

**Author:** ![balupad14](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/balupad14/32/462142_2.png) [@balupad14](https://forum.uipath.com/u/balupad14)\
**Post date:** [July 20, 2018, 9:43am UTC](https://forum.uipath.com/t/invoke-method/6762/3 "2018-07-20T09:43:04Z")

</div>

Hi @Divyashreem

Below I have specified 2 example to use the invoke methods . it can help you to understand about it.

![image](https://global.discourse-cdn.com/uipath/original/2X/e/eb5aad36cbd10ac7437fa302ac5f6717d691d6a3.png)

 ![image](https://global.discourse-cdn.com/uipath/original/3X/7/6/764bac181fcd476a7e0eb5550869a8981ac9cd5f.png)

Regards  
Balamurugan.S

---

<div class="post-metadata">

**Author:** ![aksh1yadav](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aksh1yadav/32/135359_2.png) [@aksh1yadav](https://forum.uipath.com/u/aksh1yadav)\
**Post date:** [July 20, 2018, 10:04am UTC](https://forum.uipath.com/t/invoke-method/6762/4 "2018-07-20T10:04:02Z")

</div>

hey @Divyashreem

Except Above you can look this Existing thread too 🙂

> [@Use of Invoke Method](https://forum.uipath.com/t/use-of-invoke-method/1909):
>
> Hi All, I have gone through all the post regarding Invoke Method , but I m not getting the concept of Invoke Method. It has Target Type-it has many items like null ,int32,string. Target object-what is this??? Method Name:-are these method are predefined or User Defined? Parameter : how to use this . can someone give full concept of Invoke Method. How and where to use it.

Regards…!!  
Aksh

---

<div class="post-metadata">

**Author:** ![Divyashreem](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/divyashreem/32/464042_2.png) [@Divyashreem](https://forum.uipath.com/u/Divyashreem)\
**Post date:** [July 20, 2018, 10:08am UTC](https://forum.uipath.com/t/invoke-method/6762/5 "2018-07-20T10:08:27Z")

</div>

thank you soo much, This was the poast craeted in 2017:D

---

<div class="post-metadata">

**Author:** ![aksh1yadav](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aksh1yadav/32/135359_2.png) [@aksh1yadav](https://forum.uipath.com/u/aksh1yadav)\
**Post date:** [July 20, 2018, 10:09am UTC](https://forum.uipath.com/t/invoke-method/6762/6 "2018-07-20T10:09:25Z")

</div>

> [@Divyashreem](#):
>
> thank you soo much, This was the poast craeted in 2017:D

Hey @Divyashreem

I just got noticed . so much posts 😛

Regards…!!  
Aksh

---

<div class="post-metadata">

**Author:** ![MARIODC](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mariodc/32/255572_2.png) [@MARIODC](https://forum.uipath.com/u/MARIODC)\
**Post date:** [March 23, 2020, 4:32pm UTC](https://forum.uipath.com/t/invoke-method/6762/7 "2020-03-23T16:32:09Z")

</div>

Hi, @aksh1yadav. I noticed you helped @Divyashreem pointing out the other thread but I also noticed no one has been able to answer his question which is my question as well:

•Method Name: are these method predefined or User Defined?. I mean, Is there any list of ACCEPTABLE name for this requirement?

I ask because whenever you try to use any name as the ‘Method Name’ does not accepted.

So far these are the one is taking: Merge, ImportRow (within a for each row activity).

Regards,

---

<div class="post-metadata">

**Author:** ![Shagoul\_Hameed](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/shagoul_hameed/32/186684_2.png) [@Shagoul\_Hameed](https://forum.uipath.com/u/Shagoul_Hameed)\
**Post date:** [February 21, 2021, 5:22pm UTC](https://forum.uipath.com/t/invoke-method/6762/8 "2021-02-21T17:22:10Z")

</div>

Hi,

in this invoke method activity copying all files and sub folders if suppose i want to exclude one of the folders how can we achieve.
