I have a lot of components in my parent publications, After doing some modification through core service, I need to publish the component from related web application. So I have the tcm id of a component from parent publication or content publication you can say, Now I need a method by which I can fetch the same component id of web application. Please share your ideas or logic or code.
You may want to explore the configuration and code for WF4T (point 8) In it I am capturing the content being edited (which is most ideally in the Content Publication) and then it has to be auto published from one or more Web Publications, value of which I am retrieving from a managed mapping of Content and Web Publications in the XML configuration file.
This is one option I have been using the WF4T, you may further think in this direction of managing this mapping through Publication Metadata or a Specific component created in the Root/Master Publication etc.
Also, in any scenario, I would recommend using the WebDav path where ever possible instead of the TCM URI
Do you want to publish the component in a specific publication? Or in all publishable child publications? Or only some? And to which publication targets (or target types)?
Is there a fixed rule that maps a modified component to a (set of) combination(s) of a publication target and one or more publications? Or does that set vary by component?
If all you really intend to do is find the blueprint children of the component then the method you are looking for is
CoreServiceClient.GetListXml(tcmUriOfComponent, new BluePrintChainFilterData(BluePrintChainDirection.Down));